SVK::Path(3)

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

πŸ¦‹ SVK::Path β€” the manual page, bestie edition

okay so real talk: this is SVK::Path(3), a User Contributed Perl Documentation page, and it's literally the glow-up guide to the SVK path class. grab a strawberry smoothie πŸ“ and let's get into it.


πŸ’– NAME

SVK::Path β€” the SVK path class. that's it, that's the name, iconic behavior only πŸ‘‘


✨ SYNOPSIS

See below

yes bestie, "see below" is the whole synopsis. the docs said figure it out from the rest of the page and honestly? respect. πŸ’…


🌸 DESCRIPTION

The class represents a node in svk depot. that's the whole vibe: one class, one node in the depot, main character energy.


πŸŽ€ root

Returns the root representing the file system of the revision at the anchor.

Give optional pool (null to use default), otherwise use the internal root of the path object.

⚠️ Be careful if you are using the root object but not keeping the path object. like, do NOT let the path object ghost you while you're still holding the root, that's the trap πŸ™ˆ

πŸŽ€ same_repos

Returns true if all @other targets are from the same repository as this one. yes queen, same repo check, fr fr.


πŸŽ€ same_source

Returns true if all @other targets are mirrored from the same source.


πŸŽ€ is_mirrored

Returns the mirror object if the path is mirrored. Returns additional path component if used in array context.


πŸŽ€ normalize

Normalize the revision to the last changed one. glow-up for your revision number ✨


πŸŽ€ as_depotpath

Makes target depotpath. Takes $revision number optionally.


πŸŽ€ path

Returns the full path of the target even if anchorified. anchorified? still getting the full path. no crumbs left behind 🫢


πŸŽ€ descend

Makes target descend into $entry.


πŸŽ€ universal

Returns corresponding SVK::Target::Universal object.


πŸŽ€ depotpath

Returns depotpath of the target.


πŸŽ€ copy_ancestors

Returns a list of (path, rev) pairs, which are ancestors of the current node. it's giving family tree, but make it revisions 🌈


πŸŽ€ nearest_copy(root, path, [pool])

given a root object (or a target) and a path, returns the revision root where it's ancestor is from another path, and ancestor's root and path.


Check if $self is related to another target. are they related? vibe check time πŸ’€


πŸŽ€ copied_from ($want_mirror)

Return the nearest copy target that still exists. If $want_mirror is true, only return one that was mirrored from somewhere.


πŸŽ€ $self->seek_to($revision)

Return the SVK::Path object that $self is at $revision.

Note that we don't have forward tracing, so if <$revision is greater than "$self-"revision>, a SVK::Path at <$revision> will be returned. In other words, assuming "foo@N" for "-r N foo@M" when N > M.

😭 no forward tracing bestie, so don't come for it expecting time travel forward. it does what it does.

πŸŽ€ as_url($local_only, [ $path, $rev ])

Returns (url, revision) pair. two-for-one, we love a bundle deal πŸ’–


πŸŽ€ node_id ()

Returns the node id of this path object.


πŸ‘€ SEE ALSO

SVK::Path::Checkout β€” go read that one next, iykyk.


and that's the page, bestie!! this was perl v5.42.0, dated 2025-07-25, and it's the SVK::Path(3) manual β€” slay, ate, no crumbs, periodt πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from