1SVK::Log::ChangedPath(3U)ser Contributed Perl DocumentatiSoVnK::Log::ChangedPath(3)
2
3
4
6 SVK::Log::ChangedPath - changes made to a path during in a revision
7
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
15 An object of this class represents a path which was modified in a par‐
16 ticular 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 analyz‐
22 ing the logs.
23
25 new $root, $path_name, $path_entry
26
27 SVK::Log::ChangedPath objects are usually created from
28 SVK::Log::ChangedPaths and it's probably meaningless to construct them
29 anywhere else. Nevertheless, here's a brief description.
30
31 $root should be the return value from "SVK::Path->root()" $path_name is
32 the key in the hash returned by "$root->paths_changed()" $path_entry is
33 the corresponding value from that hash.
34
35 action
36
37 Returns a single character indicating the way in which the content of
38 the path was changed. This letter is the same as the first column in
39 the path line that you see when you do "svk log --verbose"
40
41 copied_from
42
43 If the path was copied from somewhere else in this revision,
44 "copied_from()" returns the revision and path from which this path was
45 copied. The values are returned as a list with items in that order.
46 Namely,
47
48 if ( $changed_path->is_copy() ) {
49 my ($rev, $path) = $changed_path->copied_from();
50 print "Copied from $path in revision $rev\n";
51 }
52
53 is_copy
54
55 Returns true if the path was copied from somewhere else in this revi‐
56 sion, otherwise, returns false.
57
58 path
59
60 Returns the full depot path for this changed path.
61
62 property_action
63
64 Returns a single character indicating the way in which the properties
65 of the path were changed. This letter is the same as the second column
66 in the path line that you see when you do "svk log --verbose"
67
69 None
70
72 SVK::Log::ChangedPath requires no configuration files or environment
73 variables.
74
76 · SVK::Command::Log
77
79 None known.
80
82 None known.
83
84
85
86perl v5.8.8 2006-12-28 SVK::Log::ChangedPath(3)