Author: cmpilato
Date: Wed Aug 1 19:01:21 2012
New Revision: 1368197
URL: http://svn.apache.org/viewvc?rev=1368197&view=rev
Log:
Fix issue #4216 ("Error updating relocated working copy with
server-relative externals defined").
* subversion/libsvn_client/externals.c
(switch_dir_external): After relocating an external working copy,
update our notion of that repository's root URL, too.
Modified:
subversion/trunk/subversion/libsvn_client/externals.c
Modified: subversion/trunk/subversion/libsvn_client/externals.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/externals.c?rev=1368197&r1=1368196&r2=1368197&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/externals.c (original)
+++ subversion/trunk/subversion/libsvn_client/externals.c Wed Aug 1 19:01:21
2012
@@ -239,6 +239,10 @@ switch_dir_external(const char *local_ab
}
else if (err)
return svn_error_trace(err);
+
+ /* If the relocation went without a hitch, we should
+ have a new repository root URL. */
+ repos_root_url = repos_root;
}
SVN_ERR(svn_client__switch_internal(NULL, local_abspath, url,