pyhistory维护项目的历史记录条目。
pyhistor的Python项目详细描述
用于维护项目历史记录文件的应用程序。
- 免费软件:BSD许可证
- 来源:https://github.com/beregond/pyhistory
- PYPI:https://pypi.python.org/pypi/pyhistory
pyhistory
pyhistory在分布式工作环境中维护历史记录条目,其中 允许许多开发人员在没有 冲突。
安装
pip install pyhistory
功能
(所有命令都可以从pyhistory或shortcut-pyhi开始)
添加历史记录条目:
$ pyhi add 'New feature' $ pyhi add Something
列出历史记录条目:
$ pyhi list * New feature * Something
用给定版本的条目更新历史文件:
$ cat HISTORY.rst my project==========0.4.1 (2015-08-04) ++++++++++++++++++ * Added PyHistory to project. * Improved codebase. * Other features. $ pyhi update 0.4.2 $ cat HISTORY.rst my project==========0.4.2 (2015-08-05) ++++++++++++++++++ * Bug fixes * Change in API * Removed old features 0.4.1 (2015-08-04) ++++++++++++++++++ * Added PyHistory to project * Improved codebase * Other features
删除所选条目:
$ pyhi delete 1. New feature 2. Something 3. Another one 4. Wrong one (Delete by choosing entries numbers.) $ pyhi delete 24 $ pyhi list * New feature * Another one
清除所有历史记录:
$ pyhi clear Do you really want to remove all entries? [y/N]: y
或没有提示:
$ pyhi clear --yes
配置文件
您可以通过setup.cfgfile根据需要调整pyhistory行为。只是 把pyhistory部分放在那里:
[pyhistory]history_dir=some_dir # 'history' by defaulthistory_file=myhistory.rst # 'HISTORY.rst' by defaultat_line=42 # by default history will be injected after first headline
历史记录
2.1(2017-09-29)
- 修正了空文件的错误。
- 未固定的硬包装要求。
- 增加了对py35和py36的支持。
2.0(2015-08-07)
- 添加了行拆分。
- 移动了cli界面以单击库。
- 添加了清除命令的“-yes”标志。
- 已删除“squash”子命令。
- 为生成的文件添加微秒。
- 中的0 as at line选项不再有效。
1.3(2014-10-17)
- 时间戳现在是毫秒(再次)。
- 已从文件中添加加载配置。
1.2.1(2014-08-06)
- 改进了生成哈希的格式(现在没有毫秒)。
1.2(2014-07-22)
- 添加了删除命令。
1.1(2014-07-15)
- 为生成的文件添加了时间戳,因此现在条目的顺序正确了。
- pyhistory遍历目录树以找到历史目录的正确位置。
1.0.3(2014-06-23)
- 添加了squash命令(要更新的别名)。
1.0.2(2014-06-22)
- 启动检测的进一步错误修复。
1.0.1(2014-06-20)
- 修正了当历史目录不存在时由清除引起的错误。
- 修正了更新-命令将尝试查找文件开始。
1.0(2014-06-20)
- pypi上的第一个版本。