Perl bindings
From: Miller, Eric <Eric.Miller_at_amd.com>
Date: 2006-12-18 17:03:49 CET
I'm attempting to use the swig'd perl bindings in the 1.4.2 installation
Basically the svn_wc_status_t interface doesn't seem to be doing what I
Consider the following working copy as reported by 'svn status -u':
? SVNWc.ps
K 6 b
M 11 c
* 6 d
? SVNClient.ps
O 6 a
So 'b' is locked in this wc, 'a' is locked in some other wc, and the .ps
Also I am using svn+ssh:// for the url in this wc.
My perl code:
sub locked {
my ($path, $status) = @_;
print "$path is locked? ";
if($status->locked()) {
print "Yep\n";
} else {
print "Nope\n";
}
}
$o->{_svn_client}->status($o->{wc},'HEAD', \&locked, $o->{recursive},
$o->{get_all},
Consider this output (get_all=0, show_updates=0):
SVNWc.ps is locked? Yep
SVNClient.ps is locked? Yep
b is locked? Yep
c is locked? Nope
Problem A: Unversioned files are reported as locked when show_updates
And this output (get_all=0, show_updates=1):
SVNWc.ps is locked? Nope
b is locked? Nope
c is locked? Nope
d is locked? Nope
SVNClient.ps is locked? Nope
a is locked? Nope
Problem B: Locks are not reported when show_updates is 1.
I have also tried using the entry method with $status->entry->locked()
Can anyone tell me if my problems stem from misuse of the bindings or
As a follow on question - If these problems stem from the perl bindings,
Eric
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.