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

RE: Python binding examples, any more than the ones included in the src?

From: Dale Hirt <dale_at_sbcltd.com>
Date: 2005-09-28 19:37:15 CEST

Jarrod,
 
There is a really good example of what you want to do at:
 
http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/pre-commit-check.py
 
Dale

-----Original Message-----
From: jarrod roberson [mailto:jarrod.roberson@gmail.com]
Sent: Wednesday, September 28, 2005 9:44 AM
To: users@subversion.tigris.org
Subject: Python binding examples, any more than the ones included in the src?

After countless hours of searching google and google groups all the examples I can file of using the Python bindings are either so simple and contrived they are of no use, or they are so complex you can't figure out what they are doing for all the indirection of the actual program.

I am trying to write a simple pre-commit hook that will check the transaction and make sure nothing in it is being applied against anything in the /tags/ module.

I am trying to do this without resorting to dumping an svnlook out to a text file then reparsing it, since we have these nice bindings and all, I figured I could make some calls to get the contents of the transaction, but I can't find anything applicable.

Any thing that points me in the right direction would be a great help.

-- 
If you don't know what you want, you probably need a nap. 
Received on Wed Sep 28 19:40:10 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.