##language:zh #pragma section-numbers off ##含有章节索引导航的 ZPyUG 文章通用模板 <> ## 默许导航,请保留 <> = Trac响应ci 自动传票处理 = ##startInc == 现象 == {{{ twinsant 发件人当地时间 发送时间 22:13 (GMT+08:00)。发送地当前时间:下午3:32。 ✆ 回复 python-cn@googlegroups.com 发送至 "Python.cn@google" 日期 2010年12月30日 下午10:13 主题 [CPyUG] SVN提交时关闭Trac的ticket }}} 哪位前辈指点下?目前我们配置的Trac好像无法在svn ci注释里关闭ticket了。。。 == 自答 == {{{ twinsant 发件人当地时间 发送时间 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 }}} 总结自己的教训,简化大家以后遇到这个问题的对策: 1. 用trac admin或修改trac.ini 增加tracopt.ticket.commit_updater.*=enabled 1. 把trac.ini里的repository_sync_per_request设置成空 1. 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 }}} 1. 各自增加 {{{ trac-admin /path/to/trac/env changeset added "$REPOS" "$REV" trac-admin /path/to/trac/env changeset modified "$REPOS" "$REV" }}} ##endInc ---- '''反馈''' 创建 by -- ZoomQuiet [<>]