SVK::Lo...ngedPath(3)

πŸ“¦
version 2.2.3 Β· 2 versions
, in fedora 43

πŸ’– 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:

  • $root should be the return value from SVK::Path->root()
  • $path_name is the key in the hash returned by $root->paths_changed()
  • $path_entry is 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