跳转到主要内容

提供类似Biff的仓库文件功能

项目描述

备注

TracChangeFileBiffPlugin 当有人更新它时,在仓库中查询或监控某些文件很有用。

注意:由于它使用文本类型的list格式,TracChangeFileBiffPlugin需要Trac 1.0或更高版本。(TracTicketsCustomFields

功能

  • 为仓库中的文件提供类似Biff的功能

配置

  • 在插件页面启用TracChangeFileBiffPlugin。

  • 访问文件Biff管理面板

当您像这样访问文件Biff管理页面时,将添加“ticket-custom”部分的选项。

[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和文件名通过逗号分隔配置多个值。

  • 允许使用文件名的glob模式

  • glob模式可在[ticket-custom]filebiff.matching_pattern中进行配置。可能的值是(默认:fnmatch

配置文件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

操作提示

集成TracMultiSelectBoxPlugin

为了像这样维护工单,集成TracMultiSelectBoxPlugin是一种好的实践。

变更日志

0.4.0 (2015-03-29)

  • 支持gitignore风格的模式匹配

0.3.0 (2014-04-04)

  • 首次发布

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

TracChangeFileBiffPlugin-0.4.0.tar.gz (15.4 kB 查看哈希值)

源代码

由以下支持