简体   繁体   English

CVS或SVN有哪些Python绑定?

[英]What Python bindings are there for CVS or SVN?

I once did a cursory search and found no good CVS bindings for Python. 我曾经粗略搜索过,发现Python没有很好的CVS绑定。 I wanted to be able to write helper scripts to do some fine-grained manipulation of the repository and projects in it. 我希望能够编写帮助程序脚本来对存储库和项目进行一些细粒度的操作。 I had to resort to using popen and checking stdout and stderr and then parsing those. 我不得不求助于使用popen并检查stdoutstderr然后解析它们。 It was messy and error-prone. 它很混乱,容易出错。

Are there any good quality modules for CVS integration for Python? 是否有适用于Python的CVS集成的高质量模块? Which module do you prefer and why? 您更喜欢哪个模块?为什么?

While I am at it, is there a good Subversion integration module for Python? 虽然我在这,但是有一个很好的Python Subversion集成模块吗? My understanding is that Subversion has a great API for such things. 我的理解是Subversion有很好的API用于此类事情。

For cvs, pyCVS may be worth a look. 对于cvs, pyCVS可能值得一看。

For svn, there is pysvn , which is pretty good. 对于svn,有pysvn ,非常好。

Tailor , a Python program which lets different version control systems interoperate, simply calls the external programs cvs and svn when working with repositories of those formats. Tailor是一个允许不同版本控制系统互操作的Python程序,在处理这些格式的存储库时,只需调用外部程序cvssvn This seems pretty ugly, but reduces Tailor's dependencies from "requires ____ bindings" to "requires working system". 这看起来很丑陋,但是将Tailor的依赖从“require ____ bindings”减少到“需要工作系统”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM