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

Re: Perl equiv for 'svn info http://example.com/repos'?

From: Christopher H. Laco <claco_at_chrislaco.com>
Date: 2005-10-31 00:59:48 CET

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Garrett Rooney wrote:
> On 10/30/05, Christopher H. Laco <claco@chrislaco.com> wrote:
>
>
>>Not knowing exactly where..I stumbled across this...
>>http://quicksort.net/svndocs/structsvn__ra__plugin__t.html
>
>
> The stuff at quicksort.net is actually very out of date (I put it up
> when I was originally converting the Subversion public headers to
> Doxygen), you're better off with the stuff at:
>
> http://svn.collab.net/svn-doxygen/
>
>
>>Seeing things like get_dir/get_file... I should be able to use SVN::Ra
>>for my browseing instead of SVN::Client->cat/ls right?
>
>
> It's possible, although the higher level APIs in SVN::Client might be
> more convenient. The SVN::Ra API is much more low level.

Yeah, I'll say. If you don't do C/XS, those docs aren't very helpful in
perlland.

The simplest thing

my $count = $ra->get_dir('/svn', $head);

I know there's a 3rd and 4th param, but what are they in perl-speak?
Passing \%hash or \@array get's nothing.

I get back a number. I have no idea how to actually get the contents.

SVN::Client works fine, but it's also a little unclear on how to get
svn:log props for each dirent returned from ->ls without making seperate
calls to get_prop for each item when looping through them.

At this point, I've be a little more productive just parsing the cmd
line client output. :-/

- -=Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDZV50+66dLHM50ssRAvDTAJ950C/5h0qIIyfutq8EUCKN8SWoHwCfTchK
NOzETc7TOArlCfm34uYPloU=
=+tEN
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 31 01:01:29 2005

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.