views:

1070

answers:

2

Because windows is case-insensitive and because SVN is case-sensitive and because VS2005 tends to rename files giving them the lower-case form which messes my repositories' history, I've tried to add the pre-commit hook script from http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/case-insensitive.py. Sure enough, the script uses classes from python's libsvn ("from svn import repos, fs") which I fail to find compiled for Windows. Is there an alternative? To libsvn or to the hook script?

+2  A: 

There are two alternative Python bindings for libsvn:

Subvertpy is quite new and is written by the author of bzr-svn: the transparent svn inter-operation bridge for bzr.

For a while, bzr-svn used the upstream SWIG Python bindings, and the author contributed a lot of bug fixes. It helped move the upstream python support for "horribly broken" to "painfully aggravating and unpythonic". So after wasting too many hours of his life to SWIG, the author decided to make his own bindings.

ddaa
+3  A: 

The Tigris.org's pre-complied python bindings for libsvn are a separate download. The latest as of Oct 27 could be found here.

There are other binary SVN distributions listed here, and they probably have different policy for bundling the python bindings.

Milen A. Radev
Thanks, your answer led me to the following page: http://www.subversionary.org/howto/using-check-case-insensitive-py-on-windows
Zamel
Good luck with that. Upstream python bindings suck. Very. Badly. That's why there are two different alternative bindings.
ddaa
@ddaa, you may need to read the question again, especially this part: '...the script uses classes from python's libsvn ("from svn import repos, fs") which I fail to find compiled for Windows'.
Milen A. Radev