1SVN::Simple::Edit(3)  User Contributed Perl Documentation SVN::Simple::Edit(3)
2
3
4

NAME

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

SYNOPSIS

9        my $edit = SVN::Simple::Edit->new
10           (_editor => [SVN::Repos::get_commit_editor($repos, "file://$repospath",
11                                             '/', 'root', 'FOO', \&committed)],
12           );
13
14        $edit->open_root($fs->youngest_rev);
15        $edit->add_directory ('trunk');
16        $edit->add_file ('trunk/filea');
17        $edit->modify_file ("trunk/fileb", "content", $checksum);
18        $edit->delete_entry ("trunk/filec");
19        $edit->close_edit ();
20        ...
21        $edit->copy_directory ('branches/a, trunk, 0);
22

DESCRIPTION

24       SVN::Simple::Edit wraps the subversion delta editor with a perl
25       friendly interface and then you could easily drive it for describing
26       changes to a tree. A common usage is to wrap the commit editor, so you
27       could make commits to a subversion repository easily.
28
29       This also means you can not supply the $edit object as an delta_editor
30       to other API, and that's why this module is named ::Edit instead of
31       ::Editor.
32
33       See SVN::Simple::Editor for simple interface implementing a delta edi‐
34       tor.
35

PARAMETERS

37       for constructor
38
39       _editor
40           The editor that will receive delta editor calls.
41
42       missing_handler
43           Called when parent directory are not opened yet, could be:
44
45           \&SVN::Simple::Edit::build_missing
46               Always build parents if you don't open them explicitly.
47
48           \&SVN::Simple::Edit::open_missing
49               Always open the parents if you don't create them explicitly.
50
51           SVN::Simple::Edit::check_missing ([$root])
52               Check if the path exists on $root. Open it if so, otherwise
53               create it.
54
55       root
56           The default root to use by SVN::Simple::Edit::check_missing.
57
58       base_path
59           The base path the edit object is created to send delta editor
60           calls.
61
62       noclose
63           Do not close files or directories. This might make non-sorted oper‐
64           ations on directories/files work.
65

METHODS

67       Note: Don't expect all editors will work with operations not sorted in
68       DFS order.
69
70       open_root ($base_rev)
71       add_directory ($path)
72       open_directory ($path)
73       copy_directory ($path, $from, $fromrev)
74       add_file ($path)
75       open_file ($path)
76       copy_file ($path, $from, $fromrev)
77       delete_entry ($path)
78       change_dir_prop ($path, $propname, $propvalue)
79       change_file_prop ($path, $propname, $propvalue)
80       close_edit ()
81

AUTHORS

83       Chia-liang Kao <clkao@clkao.org>
84
86       Copyright 2003-2004 by Chia-liang Kao <clkao@clkao.org>.
87
88       This program is free software; you can redistribute it and/or modify it
89       under the same terms as Perl itself.
90
91       See <http://www.perl.com/perl/misc/Artistic.html>
92
93
94
95perl v5.8.8                       2004-11-16              SVN::Simple::Edit(3)
Impressum