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

python scripting: retreiving change info for buildbot

From: John Pye <john.pye_at_student.unsw.edu.au>
Date: 2006-03-15 02:12:52 CET

Hi all,

I saw that thread about the python API and its lacking documentation. I
also read about 'pysvn' and tried to build it but it doesn't have a
standard python build process and isn't available as an RPM package.

Can anyone tell me what the three-liner python script would be that
takes a subversion repository URL and pulls out the latest trunk
revision and who it was by?

My attempt was

> import svn.client
> msgs =
> svn.client.log("https://pse.cheme.cmu.edu/svn/ascend/code/trunk",limit=1)
> print msgs

But apparently I need *8* arguments to that function, and I can't use
keyword arguments.

I'm hoping to use this to implement a way to monitor an svn repository
for buildbot updates without needing to install hook scripts on the
server, which is under my control.

Would appreciate any help you can offer.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 15 02:14:43 2006

This is an archived mail posted to the Subversion Users mailing list.