hg、git、bzr、svn的shell命令包装器
pyrpo的Python项目详细描述
吡咯
GitHub| PyPI| Documentation| Travis-CI
pyrpo:hg、git、bzr、svn的shell命令包装器
功能
- 包装和解析shell命令(主要作为参考)
- 浏览存储库目录
- 为一个或多个存储库生成报告
- 呼叫hg status、git status等。
- 生成汞.hgsubs
- 生成git.gitsubmodule
- 生成piprequirements.txt
- 生成shell脚本(重建环境)
- TOdo:复制分支/标记/修订版
- 函数namedtuples,iteratorsyield-inggenerators
- optparse参数分析(-h,--help)
- cookiecutter-pypackage项目模板化
安装
从PyPi:
安装pip install pyrpo
从GitHub安装为可编辑(在site-packages中添加pyrpo.pth):
pip install -e git+https://github.com/westurner/pyrpo#egg=pyrpo
使用量
打印帮助:
pyrpo --help
扫描文件:
# Scan and print a shell report pyrpo -s . -r sh pyrpo
生成龟thg-reporegistry.xml文件:
pyrpo -s . --thg
生成PIP报告:
pyrpo -r pip
生成状态报告:
pyrpo -r status
生成.hgsubs文件:
pyrpo -r hgsub
生成.gitmodules文件:
pyrpo -r gitmodule
生成原点报告:
pyrpo -r origin
生成字符串报告:
pyrpo -r str
历史
0.2.2(2019-04-15)
- python 3.7支持
- 每种报告类型的最小测试
git log --format='* %s [%h]' master..develop # [ ... ]
0.2.1(2015-05-24)
- 错误:pyrpo.py:sh_完整报告:cat > %r << EOF[91d5fb7]
- 错误,cln:pyrpo.py:logname='pyrpo'[e029abe]
- bld:makefile:pull、push、browsercmd查找[59cbc66]
- bld:makefile:tween[d636e15]
0.2.0(2015-04-25)
0.1.0(2014-05-12)
- pypi上的第一个版本。
- 从https://github.com/westurner/dotfiles/blob/2813e4ad/scripts/repos.py 重新包装