Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn: dump format documentation?

Tags:

svn

Is the "svnadmin dump" format documented somewhere? I want to record a datastructure containing all the metadata for a svn repository, which is essentially the same stuff in the "dump" file except for the file contents itself.

Seems like the svnkit library would have it, or have a way to obtain this metadata programmatically, but I've been running around the svnkit javadoc for the last hour and can't find a way to get what I need without going through more trouble than just parsing the svnadmin dump file myself.

like image 895
Jason S Avatar asked Oct 16 '09 17:10

Jason S


People also ask

What is an SVN dump?

A repository dump stream (often referred to as a “dump file” when stored as a file on a disk) is a portable, flat file format that describes the various revisions in your repository—what was changed, by whom, when, and so on.

How use Svnadmin load?

Or if you want to load into a subdirectory: $ svnadmin load --parent-dir new/subdir/for/project \ /var/svn/restored < repos-backup <<< Started new txn, based on original revision 1 * adding path : test ... done.


2 Answers

Here you go: SVN Dump File Format Specification

like image 183
MitMaro Avatar answered Oct 26 '22 23:10

MitMaro


there is a grammar of the subversion dump file format at http://www.cubewano.org/blacktackle/wiki/SubversionTools (via http://subversion.tigris.org/links.html). you might also check out the svn-dump2dir and svn-dir2dump (and the other) scripts there.

like image 36
ax. Avatar answered Oct 26 '22 23:10

ax.