SVK::Editor::Copy(3)

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

πŸ’– NAME πŸ’–

SVK::Editor::Copy β€” bestie, this thing turns editor calls into calls with history ✨


πŸŽ€ SYNOPSIS πŸŽ€

$editor = SVK::Editor::Copy->new
  ( _editor => [$next_editor],
    copyboundry_root => $root,
    copyboundry_rev => \@possible_rev,
    src => $src,
    dst => $dst,
    cb_resolve_copy => sub {},
  );

🌸 DESCRIPTION 🌸

okay so. this is the magic editor. like, genuinely iconic behavior. it takes a whole series of history-unaware editor calls and glow-up-transforms them into history-aware ones. it's giving fairy godmother but for revision trees πŸ’…

the main Subversion tree delta API SVN::Repos::dir_delta generates "expanded" editor calls β€” mostly so they can be used for editors that write to a checkout, or that show a diff. cool cool cool. but what we actually want is history-aware editor calls, because:

  • we're replaying revisions that have copies in them πŸ¦‹
  • we're displaying a diff for files that got copy-then-modified πŸ“

and that's exactly what this editor is here for. periodt.

also, heads up bestie: copyboundry_rev holds an array of possible points to be used as the copyfrom rev that needs resolving. but β€” and the original is very chill about this β€” the logic should be moved to the resolver. so, like, that's a note for future-you. don't come for me πŸ™ˆ


ngl this page is short but it's highkey doing a lot. if you're messing with copyboundry_rev, remember the resolver relocation is a known thing, not a you-problem. iykyk πŸ’€

okay bestie that's the whole vibe πŸ’œ this was SVK::Editor::Copy(3), sitting pretty in the User Contributed Perl Documentation section, and it shipped with perl v5.42.0 dated 2025-07-25. obsessed with her, honestly. mwah πŸ«ΆπŸŽ€βœ¨

πŸ“¦ where this page comes from