[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Quick question about "svn switch"

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-06-27 00:14:42 CEST

Martin Ayotte <martinay@videotron.ca> writes:

> - If an repository URL is changed (or even better : it is moved on an other
> server), the clients only need to use "svn switch" to make their working
> copies switched to the new URL, right ?

Nope, 'svn switch' tells the server to compare two trees. The two
trees need to be in the *same* repository. There's no cross
repository-communication (yet).

> In my case, I've just change the path portion of the URL and is seems to
> fail ... Did I missed something ?

Yes. 'svn switch' requires that both URLs are accessible, so the
server can compare them. By "both urls", I mean (1) the URL that your
working copy currently reflects, and (2) the URL you want to switch

What you want is 'svn switch --relocate'. That feature doesn't cause
any trees to be compared; it just rewrites the URLs within your
working copy.

> Is the "switch" command only use for moving from branch to branch ?

At the moment, yes. :-)

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 27 02:17:17 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.