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

Re: svn switch to move between servers

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-09-17 19:55:15 CEST

Justin Erenkrantz <jerenkrantz@apache.org> writes:

> I thought 'svn switch' should only change the URLs not the files. My
> working copy (in its entirety) should now point at the new URL. Then,
> I can do svn update/checkout/etc to the new repos. I'm not clear on
> why it should perform an implicit update.

'svn update' is a strict *subset* of 'svn switch'. Both commands
compare two URLs, and:

   1. modify your text-bases to reflect pristine versions of the
       second URL,

   2. edit your .svn/entries files to reflect the second URL

   3. patch your working files to look like the text-bases, using
       diff3 to preserve any local mods.

The *only* difference between switch and update is that update assumes
the two URLs are identical. That's it.

> I don't see a reason why we have to enforce a repository GUID. If
> the user says to switch, switch. Please don't be cute. -- justin

It's not being cute. You can't rewrite the entry URL unless the
text-base really represents the URL! Otherwise the entry would be
lying.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 17 19:57:04 2002

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.