Python library for getting information about SVN repository?

白昼怎懂夜的黑 提交于 2019-12-14 03:46:40

问题


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.


回答1:


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.




回答2:


I think you want something like py-svn.



来源:https://stackoverflow.com/questions/4471195/python-library-for-getting-information-about-svn-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!