[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-06 14:52:53 CEST

Hi, Brooke,
        Yeah, I'm using the perl bindings a fair amount (they're helping a
lot for moving files around, automatically committing changes, etc)....the
problem I'm finding is in the situation of a pre-commit script. In that
case, I have a txn, which I'm not supposed to change, but want to read.
Svnlook lets me read the txn, but I'd rather not have to parse out svnlook's
responses from within my pre-commit script...I'd rather do it directly
through the bindings. But, like you, I can't find anything in the bindings
that do this sort of thing.

Thanks.

Aaron
------------------
Aaron Gee-Clough
DNST/CIT/NEB/NSS
Contractor. Geek.

> -----Original Message-----
> From: Brooke Smith [mailto:novorivus@optusnet.com.au]
> Sent: Tuesday, April 05, 2005 7:08 PM
> To: Gee-clough, Aaron (NIH/CIT)
> Cc: 'users@subversion.tigris.org'
> Subject: Re: Svnlook equivalent in a perl binding?
>
> Hi Aaron,
>
> You could use the Perl or Python bindings installed as part of SVN.
> There is also JavaTSM (i think that's the name).
>
> I installed SVN using Fink (Mac OS X) and the perl libraries are in:
>
> /sw/lib/perl5/5.8.1/darwin-thread-multi-2level/SVN
>
> I couldn't find any references to a method that implements
> the same functionality as svnlook though.
>
> Cheers,
>
> Brooke
>
> On 06/04/2005, at 3:10 AM, 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?
> >
> > (If you're curious, I'm writing a pre-commit hook script,
> and trying
> > to get the files submitted & parse them.)
> >
> > Thanks.
> >
> > Aaron
> > ------------------
> > Aaron Gee-Clough
> > DNST/CIT/NEB/NSS
> > Contractor. Geek.
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
> >
> ---
> In a world without walls or fences,
> what's the need for Gates and Windows?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 6 21:06:31 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.