[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#489235: ITP: libsvn-dump-perl -- A Perl interface to Subversion dumps



Package: wnpp
Severity: wishlist
Owner: Edi Stojicevic <estojicevic@debianworld.org>


* Package name    : libsvn-dump-perl
  Version         : 0.04
  Upstream Author : Philippe Bruhat (BooK)
* URL             : http://search.cpan.org/dist/SVN-Dump-0.04/lib/SVN/Dump.pm
* License         : GPL
  Programming Lang: Perl
  Description     : A Perl interface to Subversion dumps

An SVN::Dump object represents a Subversion dump.

This module follow the semantics used in the reference document (the file notes/fs_dumprestore.txt in the Subversion source tree):

    * A dump is a collection of records (SVN::Dump::Record objects).
    * A record is composed of a set of headers (a SVN::Dump::Headers object), a set of properties (a SVN::Dump::Property object) and an optional bloc of text (a SVN::Dump::Text object).
    * Some special records (delete records with a Node-kind header) recursively contain included records.

Each class has a as_string() method that prints its content in the dump format.

The most basic thing you can do with SVN::Dump is simply copy a dump:

    use SVN::Dump;

    my $dump = SVN::Dump->new( 'mydump.svn' );
    print $dump->as_string(); # only print the dump header

    while( $rec = $dump->next_record() ) {
        print $rec->as_string();
    }

After the operation, the resulting dump should be identical to the original dump.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686-bigmem (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/bash



Reply to: