SVK::XD - svk depot and checkout handling.
use SVK::XD; $xd = SVK::XD->new (depotmap => { '' => '/path/to/repos'});
A repository referred by a name. The default depot is '' (the empty string).
A path referred by a depot name and the path inside the depot. For example, //foo/bar means /foo/bar in the default depot '', and /test/foo/bar means /foo/bar in the depot test.
Checkout path. A path in the file system that has a checked out version of a certain depotpath.
Options to new:
new
A hash reference for depot name and repository path mapping.
A Data::Hierarchy object for checkout paths mapping.
A filename for global locking.
Filename for serializing SVK::XD object.
SVK::XD
Directory name of giantlock and statefile.
giantlock
statefile
Load the serialized SVK::XD data from statefile. Initialize $self if there's nothing to load. The giant lock is acquired when calling load.
$self
load
Serialize $self to the statefile. If giant lock is still ours, overwrite the file directly. Otherwise load the file again and merge the paths we locked into the new state file. After store is called, giant is unlocked.
store
Lock the given checkout path, store the state with the lock info to prevent other instances from modifying locked paths. The giant lock is released afterward.
Unlock All the checkout paths that was locked by this instance.
Lock the statefile globally. No other instances need to wait for the lock before they can do anything.
Release the giant lock.
Given depotpath and an option about if the repository should be opened. Returns an array of repository path, the path inside repository, and the SVN::Repos object if caller wants the repository to be opened.
SVN::Repos
Given the checkout path and an option about if the repository should be opened. Returns an array of repository path, the path inside repository, the absolute checkout path, the checkout info, and the SVN::Repos object if caller wants the repository to be opened.
Like find_repos_from_co, but falls back to see if the given path is a depotpath. In that case, the checkout paths returned iwll be undef.
find_repos_from_co
Returns the SVK::XD::Editor object. Apply target translation if target is given in options. Also returns the callback hash used by SVK::Editor::Merge when called in array context.
Return a hash of properties that should attach to the file automatically when added.
Generate SVN::Delta::Editor calls to represent the changes between (oldroot, oldpath) and (newroot, newpath). oldpath is a array ref for anchor and target, newpath is just a string.
SVN::Delta::Editor
(oldroot, oldpath)
(newroot, newpath)
Options:
The editor receiving delta calls.
Don't generate text deltas in apply_textdelta calls.
apply_textdelta
Generate SVN::Delta::Editor calls to represent the local changes made to the checked out revision.
Generate delete_entry calls for sub-entries within deleted entry.
Generate absent_* calls for sub-entries within absent entry.
generate cb_unknown calls for sub-entries within absent entry.
Don't generate absent_* calls.
Mimic the behavior like SVN::Repos::dir_delta, lose copy information and treat all copied descendents as added too.
Returns a file handle with keyword translation and line-ending layers attached.
Returns the properties associated with a node. Properties schedule for commit are merged if $copath is given.
$copath
Chia-liang Kao <clkao@clkao.org>
Copyright 2003-2005 by Chia-liang Kao <clkao@clkao.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install SVK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SVK
CPAN shell
perl -MCPAN -e shell install SVK
For more information on module installation, please visit the detailed CPAN module installation guide.