SVK::Mirror(3)
π 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 itbootstrapβ bootstrap itrelocate($newurl)β relocate it, with the new url passed in as$newurlwith_lock($code)β run it under a lock, with$codefind_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_identifiertraverse_new_changesets($code)β calls$codewith an opaque object and metadata that"sync_changeset"understands πsync_changeset($changeset, $metadata)β sync a changeset, with$changesetand$metadatamirror_changesetsβ mirror the changesets, literally the whole pointget_commit_editorβ grab the commit editorurlβ 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
- fedora 43: perl-SVK 2.2.3-45.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms