![]() |
![]()
| ![]() |
![]()
NAMESVN::Agent - simple svn manipulation. SYNOPSISuse 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"); DESCRIPTIONThis 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. METHODSload OPTIONSConstructs SVN::Agent instance. Loads current status of the directory given by "path" option. modifiedReturns array of files which are currently modified. addedReturns array of file which are scheduled for addition. unknownReturns array of files which do not exist in svn repository. deletedReturns array of files which are scheduled for deletion. missingReturns array of files which are missing from the working directory. changesReturns array of files which are changes for the next commit. Note that you can also modify this array to change next commit files. add FILEAdds a file into repository. If the file's directory is not under svn control, SVN::Agent adds it also. revertRuns revert command. prepare_changesRolls modified, added and deleted arrays into changes array. commit MESSAGECommits current changes using MESSAGE as a log message. The changes should be listed in the changes array. Returns list of the output lines. updateUpdates current working directory from the latest repository contents. remove FILESchedules FILE for removal. Note, that it doesn't physically removes the file from the working directory. diff FILEDiffs the file against the repository. checkout REPOSITORYChecks-out working copy from the REPOSITORY into directory given by "path" option. AUTHORBoris Sukholitko <boriss@gmail.com> LICENSEThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSOSVN::Client, SVN manual.
|