为存储库中的文件提供类似biff的功能
TracChangeFileBiffPlugin的Python项目详细描述
注释
TracChangeFileBiffPlugin 在以下情况下查询或监视存储库中的特定文件很有用 有人会更新的
注意:tracchangefilebiffplugin需要trac 1.0或更高版本,因为它使用 文本类型的list格式。 (TracTicketsCustomFields)
功能
- 提供类似于Biff的功能 对于存储库中的文件
配置
- 在插件页中启用tracchangefilebiffplugin。
- 访问文件BIFF管理面板
访问时将添加ticket-custom节的选项 像这样归档biff管理页。
[ticket-custom] filebiff = text filebiff.format = list filebiff.label = Biff ; change filed label as you like filebiff.multiple = true ; this option is used by TracMultiSelectBoxPlugin filebiff.options = ; will be set when you configure File Biff settings filebiff.size = 3 ; this option is used by TracMultiSelectBoxPlugin filebiff.matching_pattern = fnmatch ; glob matching pattern (fnmatch or gitignore)
- 配置文件biff设置
规格:
名称中不允许包含空格
cc和filename配置了多个逗号分隔的值。
允许文件名的全局模式
glob模式可在filebiff.matching_pattern中配置可能的值是(默认值:fnmatch):
- fnmatch: standard glob pattern by [fnmatch module](https://docs.python.org/2/library/fnmatch.html “fnmatch module”).
- gitignore: gitignore sytle pattern by [pathspec library](https://pypi.python.org/pypi/pathspec/ “pathspec library”).
在配置文件biff之后添加了[changefilebiff]节 像这样的设置。
[changefilebiff] biff.2e320ca20d1aed6a.cc = user1 biff.2e320ca20d1aed6a.filename = *.txt, *.text biff.2e320ca20d1aed6a.name = text-files biff.319ddde3cb437ffc.cc = user2, guest1 biff.319ddde3cb437ffc.filename = *.properties biff.319ddde3cb437ffc.name = property-files biff.dd487b83e5e76d08.cc = user1, user2 biff.dd487b83e5e76d08.filename = *.gif, *.png, *.jpg biff.dd487b83e5e76d08.name = Image-files biff_keys = dd487b83e5e76d08, 319ddde3cb437ffc, 2e320ca20d1aed6a
更改日志
0.4.0(2015-03-29)
- 支持gitignore样式进行模式匹配
0.3.0(2014-04-04)
- 首次发布