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

Re: Is there a way to dump the checksums from a svn repo?

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 29 Nov 2012 18:24:38 +0000

olli hauer <ohauer_at_gmx.de> writes:

> Is there a way to dump the checksums from a svn repo?
>
> What I'm doing at the moment on masters and slaves is
> $> svnadmin verify
> and
> $> sqlite $repo/db/rep-cache.db "select hash,revision from rep_cache"
>
> then additional comparing the sqlite output from master and slaves.
>
> Since rep-cache is not used during read requests it would be nice to have
> for example a parameter for svnadmin verify to output the checksums so
> they can be compared between master and slaves.
>
> Is there way for example via the python/perl API?
>
> Thanks for every answer and code snippet ...

I did it in C but I suppose you might be able to use the Python
bindings. I did

    svn_fs_open()
    svn_fs_revision_root(N)
    svn_repos_replay2(N-1)

which drove an editor from rN-1 rto rN and the editor did nothing except
extract the checksum from the close_file callback.

-- 
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Received on 2012-11-29 19:25:17 CET

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.