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.
This is an archived mail posted to the Subversion Users mailing list.