问题描述
我正在寻找一个可以从SVN存储库(至少是工作副本!)中提取(至少)以下信息的库:
I'm searching for a library that can extract (at least) the following information from a SVN repository (not a working copy!):
- 版本号及其作者和作者提交消息
- 每个修订中的更改(添加,删除,修改的文件)
有没有可以做到这一点的Python库?
Is there a Python library that can do this?
对于作者和提交消息,我可以解析"db/revprops/0/..."(简单格式),但是查找更改的文件似乎并不那么容易,所以我宁愿使用一个库支持SVN仓库.
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.
推荐答案
有与libsvn的Python绑定: http://pysvn.tigris.org/docs/pysvn.html .它们有助于执行svn命令行客户端可以做的几乎所有事情.
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.
尤其是, Client.log()
方法可以满足您的需求
In particular, the Client.log()
method does what you are looking for.
这篇关于用于获取有关SVN信息库信息的Python库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!