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

SVN API in Perl

From: Giulio Troccoli <Giulio.Troccoli_at_uk.linedata.com>
Date: Fri, 11 Dec 2009 11:33:22 +0000

I'm having really a hard time using the Subversion (1.6.5) API in Perl.

I'm simply trying to get the status of a WC. In my Perl script I have

my $status_receiver = sub {
   my ($path, $status) = @_;

   say "$status $path";
};
SVN::Client::status($ctx, $path, $revision, $status_receiver, $recursive, $get_all, $update, $no_ignore);

This is just an extract, so all varibales are defined and status_receiver is called correctly.

The documentation says that "$path is the pathname of the file or directory which status is being
reported. $status is a svn_wc_status_t object". The only documentation about svn_wc_status_t that I could find is http://svn.collab.net/svn-doxygen/structsvn__wc__status__t.html, which refers to svn_wc_status2_t (http://svn.collab.net/svn-doxygen/structsvn__wc__status2__t.html) which doesn't help much.

How do I use $status in status_receiver?

Thanks
Giulio

Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447
Received on 2009-12-11 12:33:55 CET

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.