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       Create a SVK::Patch object.
35
36   load
37       Load a SVK::Patch object from file.
38
39   store
40       Store a SVK::Patch object to file.
41
42   editor
43       Return the SVK::Editor::Patch object for feeding editor calls to, or
44       driving other editors.
45
46   ticket ($merge, $source, $target;
47       Associate the patch with ticket generated from $source but excluding
48       duplicated ones from <$target>.
49
50   commit_editor
51       Returns a editor that finalize the patch object upon close_edit.
52
53
54
55perl v5.30.1                      2020-01-30                     SVK::Patch(3)
Impressum