Contents
Trac响应ci 自动传票处理
现象
twinsant <twinsant@gmail.com> 发件人当地时间 发送时间 22:13 (GMT+08:00)。发送地当前时间:下午3:32。 ✆ 回复 python-cn@googlegroups.com 发送至 "Python.cn@google" <python-cn@googlegroups.com> 日期 2010年12月30日 下午10:13 主题 [CPyUG] SVN提交时关闭Trac的ticket
哪位前辈指点下?目前我们配置的Trac好像无法在svn ci注释里关闭ticket了。。。
自答
twinsant <twinsant@gmail.com> 发件人当地时间 发送时间 15:29 (GMT+08:00)。发送地当前时间:下午3:31。 ✆ 回复 python-cn@googlegroups.com 发送至 python-cn@googlegroups.com 日期 2011年1月14日 下午3:29 主题 Re: [CPyUG] SVN提交时关闭Trac的ticket
总结自己的教训,简化大家以后遇到这个问题的对策:
- 用trac admin或修改trac.ini 增加tracopt.ticket.commit_updater.*=enabled
- 把trac.ini里的repository_sync_per_request设置成空
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
各自增加
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]