SVN::TeamTools::Store::Repo
use SVN::TeamTools::Store::Repo; my $repo = SVN::TeamTools::Store::Repo-> new(); my $rev = $repo->getSvnRev(); # Get latest revision number my $svnlook = $repo->getLook (rev=>1234); # Get a SVN::Look objects my $svnlook = $repo->getLook (txn=>1234); # Get a SVN::Look objects my $text = $repo->svnCat(rev=>1234, path=>'trunk/file.txt'); # Get a file from the SVN repository
Common methods for accessing a SubVersion Respository.
The location of the SVN repository must be specified in the config.xml file. An example: <svn> <authz>conf/authz</authz> <passwd>conf/passwd</passwd> <regex_branch>branches/</regex_branch> <regex_tags>tags/</regex_tags> <regex_trunk>trunk/</regex_trunk> <repo>/u02/svn/repo01</repo> <url>http://localhost/svn/repo01</url> <wc>/tmp/svn</wc> </svn>
The absolute path to the SubVersion repository
The path, absolute or relative to the repo path, to the authorization file
The path, absolute or relative to the repo path, to the password file
The absolute base path of the local working copy location. Branche and Merge operation will create subdirectories under this path (only used by the webinterface)
The url to the web access as in mod_dav_svn (only used by the webinterface)
A regular expression identifying the 'trunk' or 'trunks' in the repository (only used by the webinterface)
A regular expression identifying the 'tags' in the repository (only used by the webinterface)
A regular expression identifying the 'branches' in the repository (only used by the webinterface)
Creates a new repository object. No parameters needed.
Gets latest revision number.
Takes one parameter; rev (the revision number) or txn (a transaction number, if used by a hook).
Returns a SVN::Look object.
Takes two parameters: rev - a revision number, this has to be a real number, e.g. HEAD can not be used. path - a string representing a path in the repository.
returns a string containing the content of the file.
Merges new files into the repository or deletes existing files. Only used by the webinterface (in combination with the database modules).
Automatically merges branches (with the trunk) to produce new branches or tags. Only used by the webinterface and the scheduler.
Only for internal use by the web interface
Mark Leeuw (markleeuw@gmail.com)
This software is copyrighted by Mark Leeuw
This is free software; you can redistribute it and/or modify it under the restrictions of GPL v2
To install SVN::TeamTools::Indexer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SVN::TeamTools::Indexer
CPAN shell
perl -MCPAN -e shell install SVN::TeamTools::Indexer
For more information on module installation, please visit the detailed CPAN module installation guide.