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

Re: Source url '/trunk/docs/appserver' is from different repository

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-07-27 17:25:26 CEST

Josh Glover wrote:
> Quoth Max Bowsher (Tue 2004-07-27 11:06:20AM +0100):
>
>> I'm not entirely sure what we are looking for.
>>
>> Here is a list of things to check:
>>
>> *All* URLs within .svn/entries files begin with
>> "svn+ssh://svn.mydomain.com/var/svnroot/MyProject/"
>
> Bingo. A judicious grep showed that most of my sandbox files had
> originally been checked out from fileserver.mydomain.com, before the
> svn CNAME was created:
>
>> jmglov@jglover; find . -name entries | xargs grep 'url='
> ./.svn/entries:
> url="svn+ssh://fileserver.mydomain.com/var/svnroot/MyProject/trunk"
> ./tests/.svn/entries:
> url="svn+ssh://fileserver.mydomain.com/var/svnroot/MyProject/trunk/tests"
> ./tests/clients/.svn/entries:
>
url="svn+ssh://fileserver.mydomain.com/var/svnroot/MyProject/trunk/tests/cli
ents"
>
> Oops. Luckily, I was able to "sed things right" (sorry) fairly easily:
>
> sed -i.bak -e 's|url="svn+ssh://fileserver|url="svn+ssh://svn|g' `find .
> -name entries | xargs grep 'url="svn+ssh://fileserver.mydomain.com/' | awk
> -F':' '{print $1}'`
>
> Cheers, Max!

You're welcome!

The 'correct' way to handle this would be:

svn switch --relocate svn+ssh://fileserver.mydomain.com/
svn+ssh://svn.mydomain.com/

Or, even:

svn switch --relocate svn+ssh://fileserver svn+ssh://svn

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 27 17:26:25 2004

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