SVK::Editor::XD(3)

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

πŸ‘‘ SVK::Editor::XD

okay bestie, gather round, because this one is literally the editor that touches your svk checkout copies and she is booked and busy πŸ’…

Manual page for SVK::Editor::XD, living in the User Contributed Perl Documentation corner of the internet ✨


🌸 NAME 🌸

SVK::Editor::XD β€” an editor for modifying svk checkout copies πŸ¦‹


✨ SYNOPSIS ✨

$editor = SVK::Editor::XD->new
    ( path => $path,
      target => $target,
      oldroot => $fs->revision_root ($fromrev),
      newroot => $fs->revision_root ($torev),
      xd => $xd,
      get_copath => sub { ... },
      get_path => sub { ... },
    );

πŸ’– DESCRIPTION πŸ’–

So here's the vibe: SVK::Editor::XD modifies checkout copies that already exist, at the paths that get translated by the get_copath callback, and it does all of that according to the incoming editor calls. Meanwhile the path over in the depot gets translated with the get_path callback. Two translators, one iconic little editor, no cap 🫢

And she has two modes, because of course she does:

  • One is for applying changes to a checkout copy as an external modification, like when you're merging changes. 😌
  • The other is update mode, which is what brings changes from the depot over to the checkout copies. πŸ”₯

πŸŽ€ PARAMETERS πŸŽ€

On top of everything you'd pass to SVK::Editor::Checkout, you also get these:

  • target β€” the target path of the editor calls. She uses it to decide whether the root's meta data needs updating in update mode. lowkey a decision-maker πŸ’…
  • xd β€” an SVK::XD object.
  • oldroot β€” the old root, from before the editor calls happened.
  • newroot β€” the new root, from after the editor calls happened.
  • update β€” working in update mode. yes ma'am ⭐
  • get_path β€” a callback that translates paths in editor calls into paths in the depot.
  • ignore_keywords β€” don't do keyword translations (that's the svn:keywords property, iykyk).

🫢 friendly reminder that get_copath shows up in the synopsis and the description but not in this parameter list β€” she's inherited from SVK::Editor::Checkout, so don't come for her.

and that's the whole page, bestie 🌈

this was documented for perl v5.42.0, dated 2025-07-25, and honestly? she ate. periodt πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from