Trac响应ci 自动传票处理

现象

twinsant <[email protected]>
发件人当地时间 发送时间 22:13 (GMT+08:00)。发送地当前时间:下午3:32。 ✆
回复      [email protected]
发送至     "Python.cn@google" <[email protected]>
日期      2010年12月30日 下午10:13
主题      [CPyUG] SVN提交时关闭Trac的ticket

哪位前辈指点下?目前我们配置的Trac好像无法在svn ci注释里关闭ticket了。。。

自答

twinsant <[email protected]>
发件人当地时间 发送时间 15:29 (GMT+08:00)。发送地当前时间:下午3:31。 ✆
回复      [email protected]
发送至     [email protected]
日期      2011年1月14日 下午3:29
主题      Re: [CPyUG] SVN提交时关闭Trac的ticket

总结自己的教训,简化大家以后遇到这个问题的对策:

  1. 用trac admin或修改trac.ini 增加tracopt.ticket.commit_updater.*=enabled
  2. 把trac.ini里的repository_sync_per_request设置成空
  3. cp /path/to/repository/hooks里的post-commit.tmpl和post-revprop-change.tmpl到post-commit和post-revprop-change 蚂蚁一直忽略了这句话,认为hooks下的文件直接生效,所以老琢磨为啥后面的修改不生效,这说明不认真看文档真可怕阿!

        the easiest way to install a hook on Unix platforms is 
        to simply copy the appropriate template file 
        to a new file that lacks the .tmpl extension
  4. 各自增加

          trac-admin /path/to/trac/env changeset added "$REPOS" "$REV"
          trac-admin /path/to/trac/env changeset modified "$REPOS" "$REV"


反馈

创建 by -- ZoomQuiet [2011-01-14 07:41:19]

MiscItems/2011-01-14 (last edited 2011-01-14 07:41:21 by ZoomQuiet)