SVK::Patch(3)

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

πŸ’– SVK::Patch β€” the manual, but make it cute ✨

okay bestie, welcome to the SVK::Patch page πŸ’… this is a chunk of User Contributed Perl Documentation, and it's all about a class that represents a patch waiting to be applied. it's giving tree delta + vibes, and i'm obsessed. let's get into it 🫢


🌸 NAME 🌸

SVK::Patch β€” a whole class whose entire job is representing a patch to be applied. that's it. that's the girl. πŸ‘‘


✨ SYNOPSIS ✨

here's the vibe, copy-paste ready, no cap:

# Using SVK::Patch
$patch = SVK::Patch->load ($file, $xd, $depotname);
$patch->view;
# update patch for target
$patch->update;
# regenerate patch from source branch
$patch->regen;

# apply the patch to designated target
$patch->apply ($check_only);
# apply to arbitrary target
$patch->apply_to ($target, $storage, %cb);

# Creating SVK::Patch
$patch = SVK::Patch->new ('my patch', $xd, $depotname, $src, $dst);
$editor = $patch->editor
# feed things to $editor
$patch->store ($file);

like… load it, look at it, update it, regen it, apply it, or build one from scratch with new and feed your editor. the range?? unmatched πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so SVK::Patch represents tree delta and assorted meta data, such as merge info and anchor for the patch to be applied. that's the whole concept β€” a patch object that knows what it is, where it's anchored, and what merge info it's carrying around. main character energy fr fr 🌈


πŸŽ€ METHODS πŸŽ€

πŸ’œ new

Create a SVK::Patch object. baby's first patch, literally 🍼✨

πŸ’œ load

Load a SVK::Patch object from file. it's giving "glow up from disk" 🌸

πŸ’œ store

Store a SVK::Patch object to file. save her!! πŸ’ΎπŸ«Ά

πŸ’œ editor

Return the SVK::Editor::Patch object for feeding editor calls to, or driving other editors. yes bestie, you can drive other editors with it β€” iconic πŸš—πŸ’¨

πŸ’œ ticket ($merge, $source, $target;

Associate the patch with ticket generated from $source but excluding duplicated ones from <$target>. (and yes, that trailing ; in the signature is literally how it's written up there, i am not touching it πŸ™ˆ)

πŸ’œ commit_editor

Returns a editor that finalize the patch object upon close_edit. lowkey the finisher of the whole operation β€” once close_edit hits, the patch object is finalized, periodt πŸ”₯


ngl, nothing here is marked deprecated or dangerous, so you're free to slay. but keep your args exactly as written β€” i don't make the rules, i just report them πŸ’–

and that's the whole page, bestie!! 🌟 this was SVK::Patch(3) from the User Contributed Perl Documentation, and the footer says perl v5.42.0 dated 2025-07-25 β€” so yeah, she's a 2025 girlie πŸ’…πŸŽ€ go forth and apply your patches, ily, bye!! πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from