SVN::Class

Manipulate Subversion workspaces with Perl objects
Download

SVN::Class Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Peter Karman
  • Publisher web site:
  • http://search.cpan.org/~karman/

SVN::Class Tags


SVN::Class Description

Manipulate Subversion workspaces with Perl objects SVN::Class is a Perl module that extends Path::Class to allow for basic Subversion workspace management. SVN::Class::File and SVN::Class::Dir are subclasses of Path::Class::File::Stat and Path::Class::Dir respectively.SVN::Class does not use the SVN::Core Subversion SWIG bindings. Instead, the svn binary tool is used for all interactions, using IPC::Cmd. This design decision was made for maximum portability and to eliminate non-CPAN dependencies.SYNOPSIS use SVN::Class; my $file = svn_file( 'path/to/file' ); my $fh = $file->open('>>'); print {$fh} "hello world\n"; $fh->close; $file->add; if ($file->modified) { my $rev = $file->commit('the file changed'); print "$file was committed with revision $rev\n"; } else { croak "$file was not committed: " . $file->errstr; } my $dir = svn_dir( 'path/to/dir' ); $dir->mkpath unless -d $dir; $dir->add; # recurses by default $dir->commit('added directory') if $dir->modified; Requirements: · Perl


SVN::Class Related Software