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

Re: Lost my repository, had to reinstall from backup to a different location/protocol

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-03-10 05:05:59 CET

On Mar 9, 2007, at 14:17, Jim Lynch wrote:

>>> No need to touch your .svn directories - it's an easy way to hose
>>> your
>>> working copy.
>>>
>>> Use svn switch --relocate <NEWURL>

Should have been: svn switch --relocate <OLDURL> <NEWURL>

<OLDURL> and <NEWURL> can be the smallest prefix of the urls that
differs.

>> That didn't work, it gave me an error and generated a usage: block
>> for svn switch. So got to looking at the docs and tried:
>>
>> cd test ( directory under svn control)
>> svn switch --relocate svn+ssh:/jlynch@<oldlocation>/home/jlynch/
>> svntest svn://jim@<newlocation>/svntest
>>
>> That hangs forever. So I deleted test and recreated it
>> ( identical to the original test directory) and tried:
>> cd test ( directory under svn control)
>> svn switch --relocate svn+ssh:/jlynch@<oldlocation>/home/jlynch/
>> svntest/trunk svn://jim@<newlocation>/svntest/trunk
>>
>> This also hangs forever. No error messages, it just sits there
>> and stares at me, blinking.
>
> I noticed that this CentOS system was running 1.1 so I upgraded to
> 1.4 and now I get error messages saying that my change "is not a
> valid relocation.
>
> I know that I was able to check out using the old url before and I
> know I can checkout by using the new url. What exactly might be
> the problem?

Are the old repo and the new repo the same thing, or are they
different repo's?

That is, did you take the old repo and move it to a new location and
are now trying to access it via a different protocol (old and new are
same repo)? Or did you "svnadmin create" the new repo and import data
into it (old and new repo are completely different)? If the latter,
you cannot relocate a working copy to it, and must check out a new
working copy.

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Mar 10 05:06:32 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.