Reputation: 3364
The Perl bindings for Subversion in SVN::Client (I'm looking at Michael Schwern's version in CPAN, but I don't think it's significantly different from the version at Apache), mention peg revisions only in the context of the 'info' method.
Is there a way to specify a peg revision on a 'checkout' or 'update'?
I've tried appending '@84779' to the url, but that gives me error 160013 ('Filesystem has no item: \'...(url).../trunk@84779\' path not found'). But if I give the same URL + peg to the command-line client it works, so I am guessing that the peg revision is interpreted in the client CLI code. But how does it pass it on?
Upvotes: 2
Views: 297
Reputation: 968
Edit: Removed unhelpful information about the standard documented methods taking $revision
. Apologies.
Turns out SVN::Client is full of undocumented methods that wrap the SWIG bindings. Looks like you may be after SVN::Client::checkout2
which adds $peg_revision
as an accepted parameter between $path
and $revision
. It doesn't look like the similar update2
method handles peg revisions though.
Upvotes: 2