[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: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-09-18 00:22:11 CEST

Ben Collins-Sussman <sussman@collab.net> writes:

> > In the meantime you can always use a brute force approach :)
> >
> > $ find . -path \*/.svn/entries | xargs perl -i -pe 's/(url=")URL1/$1URL2/'
>
> Of course, if you have a single file switched, this won't work.

Hmm... which case fails? The switched file's URL will share a common
prefix with the the working copy root URL. So long as you restrict
yourself to changing that common prefix everything should work.

Where it will fall down is if the working copy includes another
working copy, in which case the command will not restrict itself to
the first working copy. The second working copy's URL will get
changed if (and only if) it matches the regexp.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 18 00:22:47 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.