SVK::Mirror(3)

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

πŸ’– SVK::Mirror πŸ’–

okay bestie, welcome to SVK::Mirror, a Perl module from the User Contributed Perl Documentation collection 🫢 she's a mirror-management queen and she's about to explain herself.


✨ SYNOPSIS ✨

# setup a new mirror
my $mirror = SVK::Mirror->create( { backend => 'SVNRa',  url => 'http://server/',
                                    backend_options => {}, repos => $repos, path => '/mirror' } );
# load existing mirror
my $existing = SVK::Mirror->load( { path => $path, repos => $repos } );

$mirror->mirror_changesets();

$mirror->traverse_changesets( sub { $revs_to_mirror++ } );

🌸 DESCRIPTION 🌸

The vibes start here, and here's what she's serving:

  • create β€” make a brand new mirror, main character energy from scratch πŸ’…
  • load β€” pull up an existing mirror you already had

πŸŽ€ METHODS πŸŽ€

the whole roster, no gatekeeping:

  • detach β€” detach it
  • bootstrap β€” bootstrap it
  • relocate($newurl) β€” relocate it, with the new url passed in as $newurl
  • with_lock($code) β€” run it under a lock, with $code
  • find_changeset($localrev) β€” hands you back an opaque object that "sync_changeset" understands ✨
  • find_rev_from_changeset($remote_identifier) β€” find the rev from a changeset, given $remote_identifier
  • traverse_new_changesets($code) β€” calls $code with an opaque object and metadata that "sync_changeset" understands πŸ‘‘
  • sync_changeset($changeset, $metadata) β€” sync a changeset, with $changeset and $metadata
  • mirror_changesets β€” mirror the changesets, literally the whole point
  • get_commit_editor β€” grab the commit editor
  • url β€” the url

that's the whole page, bestie, you ate it πŸ’–

this was brought to you by perl v5.42.0, dated 2025-07-25 β€” SVK::Mirror(3), signing off πŸ¦‹βœ¨

πŸ“¦ where this page comes from