[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: Josef Wolf <jw_at_raven.inka.de>
Date: 2002-09-21 00:37:51 CEST

On Tue, Sep 17, 2002 at 09:57:31AM -0700, Greg Stein wrote:
> On Tue, Sep 17, 2002 at 07:19:16AM -0500, Ben Collins-Sussman wrote:

> > 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.

+1 on this. And I would suggest to make even more sanity checks. Just
to give an example:

$ svn co $REPO/trunk wc
$ cd wc
$ svn cp . $REPO/branches/1.0
$ emacs src/bar.c
$ svn sw $REPO/branches/1.0/foo

I think every directory created by "svn mkdir" or "svn import" should
get a uniq identifier. This identifier would be inherited when a
directory is "svn mv"d or "snv cp"d. This way "svn switch" could check
whether the target directory is related to the source directory and
abort usage errors like the one above.

-- 
-- Josef Wolf -- jw@raven.inka.de --
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Sep 21 00:38:50 2002

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