提交后挂钩 特拉克
我的提交后挂钩脚本和跟踪存在一些问题 - 希望有人可以提供帮助。
这些脚本都工作正常 - 没有错误 - 但由于某种原因 trac 不更新。 我打开日志记录并发现:
Trac[svn_fs] DEBUG: Subversion bindings imported
Trac[cache] INFO: repos rev [363] != cached rev [362]
2 Trac[cache] INFO: Trying to sync revision [363]
Trac[cache] DEBUG: Caching node change in [363]: (u'Max/test2.txt.txt', 'file', 'edit', u'Max/test2.txt.txt', 362)
Trac[main] DEBUG: Dispatching <Request "GET u'/report'">
Trac[report] DEBUG: Executing report with SQL "SELECT id AS report, title, 'report' as _realm FROM report ORDER BY report"
Trac[report] DEBUG: Request args: {}
Trac[chrome] DEBUG: Prepare chrome data for request
Trac[session] DEBUG: Retrieving session for ID u'max'
Trac[main] DEBUG: 173 unreachable objects found.
但是票证中没有任何更新? 使用 Trac 本身的标准脚本等进行提交后挂钩 http ://svn.edgewall.com/repos/trac/branches/0.11-stable/contrib/?
有任何想法吗?
编辑:我有 3 个 TRAC_ADMIN 用户 - 不确定是否存在权限问题? 即没有匿名用户等
Having a few issues with my post-commit hook script and track - hoping someone can help.
The scripts all work fine - no errors - but for some reason trac doesn't update. I turned on logging and found this:
Trac[svn_fs] DEBUG: Subversion bindings imported
Trac[cache] INFO: repos rev [363] != cached rev [362]
2 Trac[cache] INFO: Trying to sync revision [363]
Trac[cache] DEBUG: Caching node change in [363]: (u'Max/test2.txt.txt', 'file', 'edit', u'Max/test2.txt.txt', 362)
Trac[main] DEBUG: Dispatching <Request "GET u'/report'">
Trac[report] DEBUG: Executing report with SQL "SELECT id AS report, title, 'report' as _realm FROM report ORDER BY report"
Trac[report] DEBUG: Request args: {}
Trac[chrome] DEBUG: Prepare chrome data for request
Trac[session] DEBUG: Retrieving session for ID u'max'
Trac[main] DEBUG: 173 unreachable objects found.
But then nothing updates in the tickets ? Using the standard scripts etc from Trac itself for post commit hook per this http://svn.edgewall.com/repos/trac/branches/0.11-stable/contrib/?
Any ideas?
Edit: I have 3 users who are TRAC_ADMIN - not sure if there is a permissions issue? i.e. no anonymous users etc
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查提交后挂钩上的执行位。 验证该钩子是否按照 svn 指定的方式命名。 (阅读有关挂钩的部分 在svn 书中。)
Check the execute bit on the post commit hook. Verify that the hook is named as specified by svn. (Read the section on hooks in the svn book.)