与 Trac 一起进行集体修订?
一个"如何在 Trac 中将您已经提交给 svn 的一堆修订组合在一起”(参见 Jim T 的回答)?
How does one "group a bunch of revisions you've already committed to svn together" (see Jim T's answer) in Trac?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最基本的想法就是在提交时将错误号放入修订日志中。 如果这是第一件事,那么当您查看日志时,您将能够轻松看到错误编号。
我知道Redmine有一个附加功能,可以检查提交日志中的这些错误编号并将修订版本附加到错误中,这样您就可以从错误中看到修复它所涉及的所有修订版本。 如果 trac 没有类似的东西我会感到惊讶。
TortoiseSVN 对票务系统提供了一些支持,这些系统也可以通过 bugtraq 属性 来实现这一点。 它们以不同的方式与跟踪软件集成 - 从突出显示错误编号并允许显示它们的简单正则表达式,到可以安装在 tortoise 中以在提交时浏览未解决的错误的成熟模块。
The very basic idea is simply to put a bug number into the revision log when you commit. If it's the first thing, then when you look down the logs you'll be able to see the bug numbers easily.
I know Redmine has an additional feature that checks for these bug numbers in the commit logs and attaches the revision to the bug, so you can see from the bug all the revisions that were involved in fixing it. I'd be suprised if trac doesn't have something similar.
TortoiseSVN has some support for ticketing systems that do this as well through the bugtraq properties. These integrate in different ways with the tracking software - from simple regex's that highlight the bug numbers and allow them to be displayed through to fully fledged modules that can be installed in tortoise to browse the open bugs whilst committing.
在 vailla Trac 中你能得到的最好的结果就是在你的提交评论中添加一个指向票证的链接(“Fixed blah blah blah for #123”注意:# 是 trac 如何获取链接。
缺点是 trac 不跟踪 细粒度的跟踪。
票证正文/数据库中的变更集将正确链接突出显示并易于搜索,但默认情况下我认为您无法实现 Trac 附带了一个示例,可以满足您的需求。
The best you'll get in vailla Trac is put a link to the ticket in your commit comment ( "Fixed blah blah blah for #123" NOTE: The # is how trac will pickup the link.
The downside is that trac does not track the changesets in the ticket body/database. The commit comments will be properly link highlighted and easy to search, but the fine grained level is tracking you want isn't there by default.
I THINK you can achieve what you want by using a post/pre-commit hook script for svn. Trac ships with an example.