[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: Greg Stein <gstein_at_lyra.org>
Date: 2002-09-17 18:57:31 CEST

On Tue, Sep 17, 2002 at 07:19:16AM -0500, Ben Collins-Sussman wrote:
> Timothee Besset <ttimo@idsoftware.com> writes:
>
> > I encountered something, I don't know if it's intended behaviour or an
> > oversight:
>
> Yes, it's intended behavior.
>
> Think about it: there's no way that 'svn switch' knows that the two
> URLs are really the same repository, or same location. 'svn switch',

It *could*, and we need it to.

Think about it: if you switch to a *different* repository, then you could
completely hose your WC (w.r.t repository) and commit total crap.

The answer is to add in what we've talked about for a while: a canonical
name for a repository. Since the repository itself passes that out, it will
be the same no matter how you access the repos (via proxies, different
hostnames, etc).

Before a switch is made, we just check the (saved) repository name against
the repos name of the switch target. And we absolutely refuse if the two
differ.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 17 18:57:38 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.