源代码控制系统的瘦包装
mayo的Python项目详细描述
mayo的主要用途是能够从uri下载存储库 指定正在使用的版本控制系统(VCS):
import mayo mayo.fetch("git+https://github.com/mwilliamson/mayo.git", "/tmp/mayo") print open("/tmp/mayo/README.md").read()
mayo也可以用作脚本:
mayo fetch git+https://github.com/mwilliamson/mayo.git /tmp/mayo
可以通过向uri附加哈希来选择特定的提交, 后跟提交的名称:
mayo.fetch("git+https://github.com/mwilliamson/mayo.git#74d69b4", "/tmp/mayo")
目前,git和hguri是受支持的。