Manual Pages for UNIX Darwin command on man SVN::Simple::Edit
MyWebUniversity

Manual Pages for UNIX Darwin command on man SVN::Simple::Edit

SVN::Simple::Edit(3) User Contributed Perl Documentation SVN::Simple::Edit(3)

NAME

SVN::Simple::Edit - A simple interface for driving svn delta editors

SYNOPSIS

my $edit = SVN::Simple::Edit->new

(editor => [SVN::Repos::getcommiteditor($repos, "file://$repospath",

'/', 'root', 'FOO', \&committed)], );

$edit->openroot($fs->youngestrev);

$edit->adddirectory ('trunk');

$edit->addfile ('trunk/filea');

$edit->modifyfile ("trunk/fileb", "content", $checksum);

$edit->deleteentry ("trunk/filec");

$edit->closeedit ();

...

$edit->copydirectory ('branches/a, trunk, 0);

DESCRIPTION

SVN::Simple::Edit wraps the subversion delta editor with a perl

friendly interface and then you could easily drive it for describing changes to a tree. A common usage is to wrap the commit editor, so you could make commits to a subversion repository easily.

This also means you can not supply the $edit object as an deltaeditor

to other API, and that's why this module is named ::::EEddiitt instead of ::::EEddiittoorr.

See SVN::Simple::Editor for simple interface implementing a delta

editor. PPAARRAAMMEETTEERRSS ffoorr ccoonnssttrruuccttoorr editor The editor that will receive delta editor calls. missinghandler Called when parent directory are not opened yet, could be:

\&SVN::Simple::Edit::buildmissing

Always build parents if you don't open them explicitly.

\&SVN::Simple::Edit::openmissing

Always open the parents if you don't create them explicitly.

SVN::Simple::Edit::checkmissing ([$root])

Check if the path exists on $root. Open it if so, otherwise

create it. root

The default root to use by SVN::Simple::Edit::checkmissing.

basepath The base path the edit object is created to send delta editor calls. noclose

Do not close files or directories. This might make non-sorted

operations on directories/files work. MMEETTHHOODDSS Note: Don't expect all editors will work with operations not sorted in DFS order.

openroot ($baserev)

adddirectory ($path)

opendirectory ($path)

copydirectory ($path, $from, $fromrev)

addfile ($path)

openfile ($path)

copyfile ($path, $from, $fromrev)

deleteentry ($path)

changedirprop ($path, $propname, $propvalue)

changefileprop ($path, $propname, $propvalue)

closeedit () AUTHORS

Chia-liang Kao

COPYRIGHT

Copyright 2003-2004 by Chia-liang Kao .

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See

perl v5.8.8 2005-02-23 SVN::Simple::Edit(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™