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

SVN::Ra::Reporter Useage

From: JupiterHost.Net <mlists_at_jupiterhost.net>
Date: 2006-08-22 03:38:37 CEST

Howdy,

Being a C/XS newbie (but perl oldie) I want to use some of the SVN::Ra
goodies but can't seem to get over a certain hump, any input is appreciated!

Assuming $sra is an SVN::Ra object and I have valid numeric $start_rev
and $end_rev

a) what do I pass to $sra->do_diff() (not sure what "calling it as a
method with the reporter baton omitted" means exactly since I can barely
decifer the C I can find about it... :p)
    my $reporter = $sra->do_diff(????);

b) What do I do with $reporter to get the diff into a variable?
   ?? my $diff = $reporter->finish_report(); or ??

So that its essentially the same as
  my $diff = qx(svn diff -r 1:2 file://svn/yadda/trunk);
but using SVN:Ra instead of a system call.

TIA! Subversion and Perl rule!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 22 03:39:54 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.