[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Bindings - Client->info

From: Miller, Eric <Eric.Miller_at_amd.com>
Date: 2006-12-21 18:29:20 CET

> I think it would be more illuminating if you gave use the full command
> you were using to call the info() subroutine. Like you mentioned, the
> return value isn't really meaningfull (as far as I can tell). In
> perl, if you don't specify a return value for a sub routine it using
> the latest $_ value (I believe). I suspect the error is being caused
> by the arguments you are giving info().

Any callback returning undef causes the error (I accidentally said 0
before).

For example:
$cb = sub {
 my ($path,$info) =@_;
 if($info->lock()) {
  print "$path is locked\n"
 }
}

$ctx->info($wc, 'HEAD', 'HEAD', $cb, $recurse);

So the return value of the callback when the entry is not locked is the
result of $info->lock(), which is undef.

Again, not a huge deal but I'm just wondering if that return value could
actually be used for something.

Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 21 18:33:23 2006

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.