Python svn bindings for Subversion?

M

Mike B

I'm trying to get Subversion 'hook scripts' working on an Ubuntu box and the
following fails.

from svn import fs, repos, core, delta

As far as I can tell there are two Python Subversion libraries, 'pysvn' and
'svn':
'pysvn' from http://pysvn.tigris.org/ appears to be a client side interface and
isn't what I need.
'svn' appears to be a SWIG wrapper and could be what I'm looking for, but I
cannot find it anywhere.

Can anyone point me in the right direction.

Thanks

Mike
 
M

Matthew Woodcraft

Mike said:
I'm trying to get Subversion 'hook scripts' working on an Ubuntu box and the
following fails.

from svn import fs, repos, core, delta [...]
'svn' appears to be a SWIG wrapper and could be what I'm looking for, but I
cannot find it anywhere.

Can anyone point me in the right direction.


It's maintained as part of the main Subversion distribution.

http://svn.collab.net/viewvc/svn/trunk/subversion/bindings/swig/

In Ubuntu, it should be in the python-subversion package.

-M-
 
M

Mike B

Mike said:
I'm trying to get Subversion 'hook scripts' working on an Ubuntu box and the
following fails.

from svn import fs, repos, core, delta [...]
'svn' appears to be a SWIG wrapper and could be what I'm looking for, but I
cannot find it anywhere.

Can anyone point me in the right direction.


It's maintained as part of the main Subversion distribution.

http://svn.collab.net/viewvc/svn/trunk/subversion/bindings/swig/

In Ubuntu, it should be in the python-subversion package.
That fixed it.

Thanks

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top