FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 07-04-2008, 10:03 AM
Edi Stojicevic
 
Default 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:ump 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:ump::Record objects).
* A record is composed of a set of headers (a SVN:ump::Headers object), a set of properties (a SVN:ump::Property object) and an optional bloc of text (a SVN:ump::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:ump is simply copy a dump:

use SVN:ump;

my $dump = SVN:ump->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



--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 04:24 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org