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

Re: svn: Can't open file '/srv/svn/repos/oneiros/db/txn-current': No such file or directory

From: Daniel Shahaf <d.s_at_daniel.shahaf.co.il>
Date: Mon, 23 Jun 2008 09:24:05 +0300 (Jerusalem Daylight Time)

Martin Schröder wrote on Sun, 22 Jun 2008 at 22:29 +0200:
> 2008/6/22 Daniel Shahaf <d.s_at_daniel.shahaf.co.il>:
> > Hmm. 'svnadmin verify' doesn't complain if txn-current is missing, and
> > 'svnadmin recover' doesn't recreate it either. However, 'svnadmin dump'
> > doesn't complain either! So, a dump|load might work for you:
> >
> > % svn --version -q
> > 1.5.0-final
> > % svnlook youngest repos1
> > 1
> > % rm -f repos1/db/txn-current
> > % svnadmin create repos2
> > % svnadmin -q dump repos1 | svnadmin -q load repos2
> > % svnlook youngest repos2
> > 1
> > % cat repos2/db/txn-current
> > 1
> > # swap the repositories, relocate the wc, and commit. Works.
>
> Thanks. It would probably enough to copy repos2/db/txn-current to
> repos1/db/txn-current, right?
>

Don't know, read libsvn_fs_fs/structure if you're curious and happy to
tweak filesystem internals. I used

    % svnadmin setuuid repos2 `svnlook uuid repos1`
    % svn switch --relocate .../repos1 .../repos2 wc1

And after the setuuid you can swap the repositories/ instead of relocating
the wc. Or change the server configuration to look for repos1 in repos2/.
etc.

Daniel

> Best
> Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-23 08:24:56 CEST

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.