SVN::Agent - simple svn manipulation.
use SVN::Agent; my $sa = SVN::Agent->load({ path => 'my_checkout_dir' }); # find out modified files print join(',', @{ $sa->modified }) . "\n"; # usual svn operations $sa->add('file.pl'); $sa->commit("Message");
This module provides regular svn operations on check out directory. It tries to do this in a simplest form possible.
All operations are currently performed by running svn binary directly. Thus it is probably unportable.
For a much more powerful way of working with svn repository see SVN::Client.
Constructs SVN::Agent instance. Loads current status of the directory given by path option.
path
Returns array of files which are currently modified.
Returns array of file which are scheduled for addition.
Returns array of files which do not exist in svn repository.
Returns array of files which are scheduled for deletion.
Returns array of files which are missing from the working directory.
Returns array of files which are changes for the next commit. Note that you can also modify this array to change next commit files.
Adds a file into repository. If the file's directory is not under svn control, SVN::Agent adds it also.
Runs revert command.
Rolls modified, added and deleted arrays into changes array.
Commits current changes using MESSAGE as a log message. The changes should be listed in the changes array. Returns list of the output lines.
Updates current working directory from the latest repository contents.
Schedules FILE for removal. Note, that it doesn't physically removes the file from the working directory.
Diffs the file against the repository.
Checks-out working copy from the REPOSITORY into directory given by path option.
Boris Sukholitko <boriss@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SVN::Client, SVN manual.
To install SVN::Agent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SVN::Agent
CPAN shell
perl -MCPAN -e shell install SVN::Agent
For more information on module installation, please visit the detailed CPAN module installation guide.