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": 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. Directory name of "giantlock" and "statefile".

Serialization and locking
Load the serialized "SVK::XD" data from statefile. Initialize $self if there's nothing to load. The giant lock is acquired when calling "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. 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.

Depot and path translation
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. 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.

Checkout handling
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. Options: The editor receiving delta calls. Don't generate text deltas in "apply_textdelta" calls. Generate "SVN::Delta::Editor" calls to represent the local changes made to the checked out revision. Options: 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. 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>