avatar
Today is 星期二
2010年09月7日

2009年11月8日

修复SVN仓库

由 晨笛 — 分类目录: 技术评论暂缺

> I’m running SUSE 10.2 with svn from the SUSE Subversion repo.
>
> LC_ALL=C
> svn –version
> svn, version 1.5.0 (dev build)
>    compiled Jun  5 2008, 16:16:44
>

Not even a Release Candidate, just head of the branch. :(

> After the last update on the 5th I get this error when committing:
> svn: Can’t open file ‘/srv/svn/repos/oneiros/db/txn-current’: No such
> file or directory
>

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.

Daniel
> And surely, /srv/svn/repos/oneiros/db/txn-current doesn’t exist.
>
> Here’s an ls of /srv/svn/repos/oneiros/db/:
> current  format  fs-type  indexes.sqlite  revprops  revs  transactions
>  txn-current-lock  uuid  write-lock
> transactions is empty, txn-current’s size is 0.
> svnadmin lstxns /srv/svn/repos/oneiros/ shows no transactions.
>
> Creating an empty /srv/svn/repos/oneiros/db/txn-current only changes

评论暂缺 »

还没有任何评论。

留下评论

XHTML: 您可以选用这些标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

© 2010 晨笛的博客 All rights reserved - Wallow theme by TwoBeers Crew - Powered by WordPress - 使用愉快!