[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: Dan and Rhi <dannon_at_simplemood.com>
Date: 2006-08-22 00:31:28 CEST


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:33:42 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.