1SVK::Log::ChangedPath(3U)ser Contributed Perl DocumentatiSoVnK::Log::ChangedPath(3)
2
3
4

NAME

6       SVK::Log::ChangedPath - changes made to a path during in a revision
7

SYNOPSIS

9           print "Path of change : ", $changed_path->path(), "\n";
10           print "Action         : ", $changed_path->action(), "\n";
11           print "Property action: ", $changed_path->property_action(), "\n";
12           ...
13

DESCRIPTION

15       An object of this class represents a path which was modified in a
16       particular revision.  It provides methods to determine how the path was
17       modified.  This class is intended for indirect use by log filters.  Log
18       filters may want to report about the paths that were modified during a
19       particular revision, but they shouldn't have to know the details of how
20       SVK determines those changes.  Encapsulating that knowledge in this
21       class allows log filters to focus on formatting, displaying and
22       analyzing the logs.
23

METHODS

25   new $root, $path_name, $path_entry
26       SVK::Log::ChangedPath objects are usually created from
27       SVK::Log::ChangedPaths and it's probably meaningless to construct them
28       anywhere else.  Nevertheless, here's a brief description.
29
30       $root should be the return value from "SVK::Path->root()" $path_name is
31       the key in the hash returned by "$root->paths_changed()" $path_entry is
32       the corresponding value from that hash.
33
34   action
35       Returns a single character indicating the way in which the content of
36       the path was changed.  This letter is the same as the first column in
37       the path line that you see when you do "svk log --verbose"
38
39   copied_from
40       If the path was copied from somewhere else in this revision,
41       "copied_from()" returns the revision and path from which this path was
42       copied.  The values are returned as a list with items in that order.
43       Namely,
44
45        if ( $changed_path->is_copy() ) {
46           my ($rev, $path) = $changed_path->copied_from();
47           print "Copied from $path in revision $rev\n";
48        }
49
50   is_copy
51       Returns true if the path was copied from somewhere else in this
52       revision, otherwise, returns false.
53
54   path
55       Returns the full depot path for this changed path.
56
57   property_action
58       Returns a single character indicating the way in which the properties
59       of the path were changed.  This letter is the same as the second column
60       in the path line that you see when you do "svk log --verbose"
61

DIAGNOSTICS

63       None
64

CONFIGURATION AND ENVIRONMENT

66       SVK::Log::ChangedPath requires no configuration files or environment
67       variables.
68

DEPENDENCIES

70       •   SVK::Command::Log
71

INCOMPATIBILITIES

73       None known.
74

BUGS AND LIMITATIONS

76       None known.
77
78
79
80perl v5.34.0                      2021-07-22          SVK::Log::ChangedPath(3)
Impressum