SVK::Lo...ngedPath(3)
π SVK::Log::ChangedPath(3) π
okay bestie, so this whole page is about SVK::Log::ChangedPath (the header shows it squished as SVK::Lo...ngedPath(3) but you get it) β it's part of the User Contributed Perl Documentation, and it's giving extremely useful little object energy. let's get into it β¨
β¨ NAME β¨
SVK::Log::ChangedPath β changes made to a path during in a revision π¦
πΈ SYNOPSIS πΈ
print "Path of change : ", $changed_path->path(), "\n";
print "Action : ", $changed_path->action(), "\n";
print "Property action: ", $changed_path->property_action(), "\n";
...
like, look at her. three whole lines and you already know what happened to your path. iconic. π
π DESCRIPTION π
so an object of this class represents a path which was modified in a particular revision. that's the whole thing. she's a little container for "hey, this path got touched, here's how."
she provides methods to determine how the path was modified. no cap. π₯
and here's the tea: this class is intended for indirect use by log filters. log filters might wanna report about the paths that were modified during a particular revision, but they shouldn't have to know the details of how SVK determines those changes. like, not their job, bestie. encapsulating all that knowledge in this class lets log filters focus on what they actually care about: formatting, displaying and analyzing the logs. separation of concerns? we love her. periodt. π
π METHODS π
π«Ά new $root, $path_name, $path_entry
so real talk: SVK::Log::ChangedPath objects are usually created from SVK::Log::ChangedPaths and it's probably meaningless to construct them anywhere else. ngl, don't do it. but here's a brief description anyway, because we're thorough like that:
$rootshould be the return value fromSVK::Path->root()$path_nameis the key in the hash returned by$root->paths_changed()$path_entryis the corresponding value from that hash
β action
returns a single character indicating the way in which the content of the path was changed.
this letter is the same as the first column in the path line that you see when you do svk log --verbose π
π§ copied_from
if the path was copied from somewhere else in this revision, copied_from() returns the revision and path from which this path was copied. the values come back as a list with items in that order. namely:
if ( $changed_path->is_copy() ) {
my ($rev, $path) = $changed_path->copied_from();
print "Copied from $path in revision $rev\n";
}
see? rev first, then path. in that order. don't flip them bestie, the list does not care about your vibes. π
π is_copy
returns true if the path was copied from somewhere else in this revision, otherwise returns false. that's it, that's the method. short queen. β¨
π path
returns the full depot path for this changed path. the whole thing. no truncation. (unlike some header lines we know π)
π₯ property_action
returns a single character indicating the way in which the properties of the path were changed.
this letter is the same as the second column in the path line that you see when you do svk log --verbose. first column = action, second column = property_action. iykyk. π¦
π DIAGNOSTICS π
None
not a single one. she doesn't do drama.
π CONFIGURATION AND ENVIRONMENT π
SVK::Log::ChangedPath requires no configuration files or environment variables. zero setup, zero yapping, just vibes. π
π DEPENDENCIES π
SVK::Command::Log
one (1) dependency. she's low maintenance and we respect that. π
π INCOMPATIBILITIES π
None known.
π BUGS AND LIMITATIONS π
None known.
lowkey suspicious how flawless she is but okay, we're not gonna question it. main character energy fr fr. β¨
okay that's the whole page, bestie!! and before you go β this was perl v5.42.0, dated 2025-07-25, filed under SVK::Lo...ngedPath(3) in the User Contributed Perl Documentation. love that for us. go read your logs and slay π
πΈπ
π¦ where this page comes from
- fedora 43: perl-SVK 2.2.3-45.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms