You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jeremy Bettis <je...@deadbeef.com> on 2004/05/26 21:26:18 UTC

Examples of python scripts using API

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