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

RE: Svnlook equivalent in a perl binding?

From: Gee-clough, Aaron (NIH/CIT) <geecla_at_mail.nih.gov>
Date: 2005-04-07 17:49:58 CEST

        Thanks. I've had a read through that, and I'm a lot closer, but
still stumped. There's a function referenced in svnlook/main.c called
svn_fs_open_txn, which looks like it's what I'm looking for. This appears
to correspond to the perl binding SVN::Fs::open_txn. But there's no
documentation that I can find for what this function's expecting for
arguments. From svn_fs.h, it looks like it's expecting a pointer for its
first variable (which it says it will set to the txn), a filesystem-type
variable for the second (which I'm assuming is the return result from
SVN::Repos::open('/path/to/repository') ), and the name of the txn for the

The problem now is, I can't for the life of me get anything other than a
segmentation fault (if I pass a variable as the first arg) or an argument
type error (if I pass a pointer to a variable, or try to fill the variable
before passing) when invoking this in perl.

Do you (or anyone else reading) happen to know where I can find some
documentation on the arguments for this function, or for any of the
functions in SVN::Fs? "man SVN::Fs" gives me a blank man page,
unfortunately. I know that the perl SVN::Client module changed the
interface a bit from what's listed in the .h for the client...did SVN::Fs do
the same thing?

Thanks for the help.

Aaron Gee-Clough
Contractor. Geek.

> -----Original Message-----
> From: Toby Johnson [mailto:toby@etjohnson.us]
> Sent: Wednesday, April 06, 2005 4:53 PM
> To: Gee-clough, Aaron (NIH/CIT)
> Cc: 'users@subversion.tigris.org'
> Subject: Re: Svnlook equivalent in a perl binding?
> Gee-clough, Aaron (NIH/CIT) wrote:
> >Hello, all.
> > So, I've got another question that I'm hoping you all
> can help me
> >with...Is there any way to get equivalent behavior to
> "svnlook -t <txn>"
> >from the perl bindings to subversion? I could just run
> svnlook & parse
> >the result, but the bindings documentation makes the point
> that this is
> >less than ideal (which I agree with), so I was hoping there
> was another
> >way...the problem is, without going very deep into some C
> code (which
> >I'm not at all good at), I don't see how to do this. Does
> anyone have any hints?
> >
> >
> Have you looked at svnlook's source code? The analogous Perl
> binding code should be very similar.
> http://svn.collab.net/repos/svn/trunk/subversion/svnlook/main.c
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 7 17:54: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.