You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ben Collins-Sussman <su...@collab.net> on 2003/08/01 01:37:29 UTC
Re: svn switch brainos?
Robert Spier <rs...@pobox.com> writes:
> (Is this a bug or user or expectation error?)
>
> I did some repository reorganization:
>
> $ svn move http://svnhost/combust/backend/trunk/ \
> http://svnhost/combust/trunk/
> # 177
> $ svn move http://svnhost/combust/backend/branches/ \
> http://svnhost/combust/branches/
> # 178
> $ svn delete http://svnhost/combust/backend
> # 179
>
> and then switched my WC over to it
>
> $ svn switch --relocate http://svnhost/combust/backend/trunk \
> http://svnhost/combust/trunk/ .
Why on earth are you using the --relocate switch? The point of that
switch is for rewriting urls when you switch schemas or hostnames.
But in your case, you don't need that at all. A simple
svn switch http://svnhost/combust/trunk
would have 'updated' your working copy to the new repository location
with no problems at all.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn switch brainos?
Posted by Robert Spier <rs...@pobox.com>.
> > $ svn switch --relocate http://svnhost/combust/backend/trunk \
> > http://svnhost/combust/trunk/ .
>
>
> Why on earth are you using the --relocate switch? The point of that
> switch is for rewriting urls when you switch schemas or hostnames.
But.. it seemed to make sense at the time :)
Would you want a patch adding a error message if
oldschema == newschema and oldhost == newhost ?
(although that doesn't get the other case of changing from one
repository to another on the same host -- which is non-trivial to
figure out from only parsing the URL)
> But in your case, you don't need that at all. A simple
> svn switch http://svnhost/combust/trunk
> would have 'updated' your working copy to the new repository location
> with no problems at all.
Doh.
Thanks!
-R
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org