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

Examples of python scripts using API

From: Jeremy Bettis <jeremy_at_deadbeef.com>
Date: 2004-05-26 23:26:18 CEST

I'd like to try my hand at writing a pre-commit script that prevents adding files that already exist with a different case, and I thought I'd do it the "right way" by using the python bindings. But I can't locate documentation or examples. mailer.py is the closest item, but I don't know how to do the equiv of "svn ls".

Now I could just punt, and use svnlook changed "repos" --transaction "tx" and parse the output for all A lines, and then call svn ls "path" and see if they already exist, but that seems like it would be really slow.

Thoughts?

-Jeremy
Received on Wed May 26 23:27:53 2004

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.