Python library for getting information about SVN repository?
-
11-10-2019 - |
Question
I'm searching for a library that can extract (at least) the following information from a SVN repository (not a working copy!):
- Revision numbers and their author & commit message
- Changes in each revision (added, deleted, modified files)
Is there a Python library that can do this?
For the authors and commit messages, I could parse "db/revprops/0/..." (simple format), but looking for changed files does not seem so easy, so I'd rather stick with a library that supports SVN repos.
Solution
There are Python bindings to libsvn: http://pysvn.tigris.org/docs/pysvn.html. They facilitate doing pretty much everything the svn command line client can do.
In particular, the Client.log()
method does what you are looking for.
OTHER TIPS
I think you want something like py-svn.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow