Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

BooK (2612)

  {book} {at} {}
Yahoo! ID: philippe_bruhat (Add User, Send Message)

Obfuscation []. Pink []. HTTP::Proxy []. YEF []. Fishnet []. Kapow []. Cog's [] bitch []. Invitation []. White [] Camel []. Nuff' said.

Journal of BooK (2612)

Wednesday October 18, 2006
03:15 PM

New module SVN::Dump

[ #31352 ]

I've just uploaded a new module on CPAN, which is called SVN::Dump . The goal is to be able to read one or several dumps produced by the command svnadmin dump, modify them and then writing them back to file or to svnadmin load so as to perform useful tricks.

The tricks I have in mind include:

  • chronologically reorder revisions when the repository is the result of merging of several distinct repositories (I heard that when doing an svn update {DATE}, svn actually does a binary search on the revisions, assuming they are in chronological order)
  • do various filtering tricks (with the power of Perl and not just prefixes, as does svndumpfilter)
  • directly merging several repository into one while keeping the chronological order of the revisions
  • etc.

Some of these things should be possible to do directly to the stream coming from svnadmin dump but others will require several dumps and probably several passes. So the SVN::Dump::Index and the SVN::Dump::TranslationTable modules may not be far away...

The module is very alpha at the moment: I hated myself for the interface when I wrote the two examples included in the distribution. ;-)

Everything is subject to change, and feedback is very welcome.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Could you explain a bit more what this does in layman's terms? I use SVN, but I'm not familiar with svndump.
    • svnadmin dump is a tool that takes a SVN repository and produces a text file you can typically backup, pass around, and use to create an identical repository with the help of svnadmin load. You can also push the revisions of a repository into another existing one with svnadmin load and the appropriate dump. But the chronological order of revisions is then broken.

      When I set off to create SVN::Dump, I actually wanted to be able to reorder a repository chronologically. To do that, you need to take a dump of