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

Re: Retarget working copy?

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-10-15 15:06:03 CEST

Quincey Koziol <koziol@ncsa.uiuc.edu> writes:

> Is there some (convenient) way to "re-target" the source of a working
> copy? I've got a subversion server runing on my home machine, but it's on a
> dialup connection with a dynamic IP address. When I try to "svn up" from
> work, it cannot reach the server at the previous address that I checked things
> out from (of course). Besides hacking the 'entries' file in each '.svn'
> sub-directory, is there a good way to specify that the repository is at a
> different location now?

At present hacking the entries file is the only way, in the past I have
used

$ find . -path \*/.svn/entries | xargs perl -i -pe 's/(url=")URL1/$1URL2/'

Modifying the entries file introduces the possibility that the working
copy and repository will get out of sync, so a complete client
solution would involve some form of check that the new URL matched the
current working copy. Mark Benedetto King posted a patch last month
that implemented URL rewriting without any checking code.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 15 15:06: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.