On Apr 22, 2008, at 3:44 AM, Christopher Eltschka wrote:
> after relocating an svn repository, everything seemed to be OK until I
> tries svn log. At that time it tried to access the old path (where, of
> course, no repository exists). I didn't find anything about this
> problem
> in the FAQ (or did I just overlook it?) and a search on the mailing
> list
> didn't help me either.
>
> Here's the commands I've used to relocate the svn repository (the
> directory names are changed, but otherwise it's exactly what I used):
>
> cd /old/svnparent
> svnadmin dump svn >/tempdir/svn.dmp
> cd /new/svnparent
> mkdir svn
> svnadmin create svn
> svnadmin load svn </tempdir/svn.dmp
> cd /path/of/working_copy
> svn switch --relocate /old/svnparent/svn /new/svnparent/svn/
>
> Then, after checking that everything worked OK, I deleted the old svn
> directory, and everything seemed to be fine until today I tried to do
>
> svn log file.tex
>
> which gave me the following error message:
>
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file:///old/svnparent/svn/foo/bar/
> file.tex'
>
> Of course that doesn't exist. But that was actually the point of
> relocating! So why does it try to access the old repository path, and
> more importantly, what can I do about it?
>
> Interestingly other commands like svn status and svn diff work
> quite well.
Sounds like the switch --relocate did not work at least for the bar
directory. Go to the bar directory and type svn info. Does it show
the new or old URL? If the old one, can it be relocated to the new
one or do you get an error?
Maybe you're using externals which point to the old URL? If so, you
can either use svndumptool to fix the URLs in the dumpfile before
importing, which fixes the URLs for all back revisions, or you can
now just commit updates to the URLs, which will however only take
effect from that revision onwards, of course.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-22 21:51:32 CEST