You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by cm...@apache.org on 2011/01/14 22:30:45 UTC

svn commit: r1059178 - /subversion/trunk/subversion/libsvn_wc/relocate.c

Author: cmpilato
Date: Fri Jan 14 21:30:44 2011
New Revision: 1059178

URL: http://svn.apache.org/viewvc?rev=1059178&view=rev
Log:
* subversion/libsvn_wc/relocate.c
  (svn_wc_relocate4): Use svn_path_url_add_component2() instead of
    svn_uri_join(), which I mistakenly thought did URI-encoding of the
    joined components.

Modified:
    subversion/trunk/subversion/libsvn_wc/relocate.c

Modified: subversion/trunk/subversion/libsvn_wc/relocate.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/relocate.c?rev=1059178&r1=1059177&r2=1059178&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/relocate.c (original)
+++ subversion/trunk/subversion/libsvn_wc/relocate.c Fri Jan 14 21:30:44 2011
@@ -128,7 +128,8 @@ svn_wc_relocate4(svn_wc_context_t *wc_ct
     return svn_error_create(SVN_ERR_CLIENT_INVALID_RELOCATION, NULL,
                             _("Cannot relocate a single file"));
 
-  old_url = svn_uri_join(old_repos_root, repos_relpath, scratch_pool);
+  old_url = svn_path_url_add_component2(old_repos_root, repos_relpath,
+                                        scratch_pool);
   old_url_len = strlen(old_url);
   from_len = strlen(from);
   if ((from_len > old_url_len) || (strncmp(old_url, from, strlen(from)) != 0))