[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 01:30:32 CET

Hash: SHA1

Garrett Rooney wrote:
> On 10/30/05, Christopher H. Laco <claco@chrislaco.com> wrote:
>>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.
> Well, ->ls should give you the last changed revision, so that should
> be enough to use ->log to get you the log. I suspect it might be a

Where's that log method? on each dirent returned?
svn_dirent_t appears to only have:

kind, size, has_props, created_Rev, time, last_author... no log.

package _p_svn_dirent_t inherits Core, but it's not clear to me what
Core has really...

> bit easier to solve your problem if you explain exactly what you're
> trying to do though.

I'm trying to write a Model plugin for Catalyst to do basic browsing,
something along the lines of the Trac source browser. I could be
browsing a repo at http, svn://, or file://, but it's nothing to do with
working copies.

I can use Ra to get the uuid, root_rev..although, that would be nice in
SVN::Client too.

I'm currently using the SVN::Client to fetch the list of items in each
path. I'd like to get the last_log for each of the items too.

It's not too clear to me yet how to get all that info without making too
many calls to the repo.

>>At this point, I've be a little more productive just parsing the cmd
>>line client output. :-/
> Well, there's nothing wrong with that (heck, we even provide the --xml
> switch so you can get a parseable format), although if you do try to
> do it via the perl API I'm sure patches to improve its documentation
> would be more than welcome.

I've love to..if I knew what the API really was without guessing. :-)

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


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:32:00 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.