You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2010/11/02 12:57:10 UTC
svn commit: r1030010 - /subversion/trunk/subversion/svn/info-cmd.c
Author: rhuijben
Date: Tue Nov 2 11:57:10 2010
New Revision: 1030010
URL: http://svn.apache.org/viewvc?rev=1030010&view=rev
Log:
Canonicalize paths before passing them to svn_client_info3.
* subversion/svn/info-cmd.c
(svn_cl__info): Canonicalize url or dirent before passing over to API.
Patch by: Noorul Islam K M <noorul{_AT_}collab.net>
(tweaked by me)
Modified:
subversion/trunk/subversion/svn/info-cmd.c
Modified: subversion/trunk/subversion/svn/info-cmd.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/info-cmd.c?rev=1030010&r1=1030009&r2=1030010&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/info-cmd.c (original)
+++ subversion/trunk/subversion/svn/info-cmd.c Tue Nov 2 11:57:10 2010
@@ -539,13 +539,19 @@ svn_cl__info(apr_getopt_t *os,
SVN_ERR(svn_opt_parse_path(&peg_revision, &truepath, target, subpool));
/* If no peg-rev was attached to a URL target, then assume HEAD. */
- if (svn_path_is_url(target))
+ if (svn_path_is_url(truepath))
{
+ truepath = svn_uri_canonicalize(truepath, subpool);
+
if (peg_revision.kind == svn_opt_revision_unspecified)
peg_revision.kind = svn_opt_revision_head;
}
else
- SVN_ERR(svn_dirent_get_absolute(&truepath, truepath, subpool));
+ {
+ truepath = svn_dirent_canonicalize(truepath, subpool);
+
+ SVN_ERR(svn_dirent_get_absolute(&truepath, truepath, subpool));
+ }
err = svn_client_info3(truepath,
&peg_revision, &(opt_state->start_revision),