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

Re: Repository became corrupt on commit

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 23 Oct 2018 14:54:34 +0000

Daniel Shahaf wrote on Tue, 23 Oct 2018 14:50 +0000:
> Alan Spark wrote on Tue, 23 Oct 2018 14:41 +0100:
> > perl dump-noderev.pl /path/to/repository /trunk/scripts/script.py 728
> > Use of uninitialized value $noderev_id in split at dump-noderev.pl line 41.
>
> Sorry about that; the script is obviously missing an error check.
>
> Looks like 'svnlook' does not exist in your $PATH.
>
> It's not obvious to non Perl speakers, but line 6 does the
> equivalent of:
> .
> if [ -z "$SVNLOOK" ]; then SVNLOOK=svnlook ; fi
> .
> so if you run the script with svn/svnadmin/svnlook in PATH, _or_ with
> $SVN, $SVNADMIN, $SVNLOOK set to those executables' full paths, then it
> should work.

The above is the preferred way forward, but if you hit roadblocks with
that, there _is_ a crude alternative:

% grep -a '^type:' /path/to/repository/db/revs/0/728

This will extract only one field from the rfc822-formatted node-rev
header. It's a poor substitute to the Perl script, but better than nothing.

Cheers,

Daniel
Received on 2018-10-23 16:54:47 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.