1SVK::Patch(3)         User Contributed Perl Documentation        SVK::Patch(3)
2
3
4

NAME

6       SVK::Patch - Class representing a patch to be applied
7

SYNOPSIS

9        # Using SVK::Patch
10        $patch = SVK::Patch->load ($file, $xd, $depotname);
11        $patch->view;
12        # update patch for target
13        $patch->update;
14        # regenerate patch from source branch
15        $patch->regen;
16
17        # apply the patch to designated target
18        $patch->apply ($check_only);
19        # apply to arbitrary target
20        $patch->apply_to ($target, $storage, %cb);
21
22        # Creating SVK::Patch
23        $patch = SVK::Patch->new ('my patch', $xd, $depotname, $src, $dst);
24        $editor = $patch->editor
25        # feed things to $editor
26        $patch->store ($file);
27

DESCRIPTION

29       SVK::Patch represents tree delta and assorted meta data, such as merge
30       info and anchor for the patch to be applied.
31

METHODS

33       new
34
35       Create a SVK::Patch object.
36
37       load
38
39       Load a SVK::Patch object from file.
40
41       store
42
43       Store a SVK::Patch object to file.
44
45       editor
46
47       Return the SVK::Editor::Patch object for feeding editor calls to, or
48       driving other editors.
49
50       ticket ($merge, $source, $target;
51
52       Associate the patch with ticket generated from $source but excluding
53       duplicated ones from <$target>.
54
55       commit_editor
56
57       Returns a editor that finalize the patch object upon close_edit.
58
59
60
61perl v5.8.8                       2006-12-28                     SVK::Patch(3)
Impressum