如何强制在 TortoiseHG 提交评论中输入案例/错误引用?
我们正在尝试让 TortoiseHG 2.0.5 检查提交注释中是否输入了fogbugz 案例编号,调查显示 TortoiseHG 中提供了“强制问题参考”,要求 link.regex 有效。我们已经将问题和问题链接与fogbugz 表达式一起使用,将案例转换为fogbugz 站点的链接,这样就可以工作了。我们要做的就是强制/提醒必须在变更集提交注释中输入一个案例。
“强制问题引用”设置不会出现在该版本的 UI 中,我们编辑了设置文件,添加了“issue.linkmandatory=确实如此”但这似乎不起作用。
任何想法是否可行或如何实现我们想要的。
非常感谢
We are trying to get TortoiseHG 2.0.5 to check that a fogbugz case number has been entered in the commit comment, investigations have shown a "mandatory issue reference" is available in TortoiseHG that requires the link.regex to be valid. We already use the Issue and Issue link with the fogbugz expression to convert a case into a link to the fogbugz site, so that works. All we want to do is force/remind that a case has to be entered in the changeset commit comment
The "mandatory issue reference" setting does not appear in the UI of this version, we have edited the settings file adding "issue.linkmandatory=True" but this does not seem to work.
Any ideas if this should work or how to achieve what we want.
Many Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
TortoiseHg 在 1.1.9 和 2.0 之间经历了一次重大重写,底层 GUI 框架从 GTK 更改为 Qt。这意味着几乎所有功能都必须重写。开发人员未使用或社区未请求的功能根本不会被移植。
我建议您首先在用户讨论邮件列表 tortoisehg-discuss 中提出您的问题,或者通过电子邮件发送至 [电子邮件受保护] 或通过 邮件列表的 gmane 网络论坛。
如果无法配置新版本以获得您想要的行为,您可以将其作为增强问题提出 https://bitbucket.org/tortoisehg/thg/issues?status=new&status=open - 但唯一 100% 确定获得该功能的方法是提供可以移植该功能的开发资源。 TortoiseHg 团队通常非常支持。您不需要深入了解 GTK、Qt 或 TortoiseHg - 只需要一些时间即可。我想一两天内就可以完成。
TortoiseHg went through a major rewrite between 1.1.9 and 2.0 where the underlying GUI framework was changed from GTK to Qt. This meant that practically all functionality had to be rewritten. Features that were not used by the developers or not requested by the community were simply not ported.
I suggest you first raise your question at the users discussion mail list tortoisehg-discuss, either via email to [email protected] or via the gmane web forum of the mail list.
If there is no way to configure the new version to get the behavior you want, you could then raise it as an enhancement issue at https://bitbucket.org/tortoisehg/thg/issues?status=new&status=open - but the only 100% certain way to get the feature would be to offer development resources that can port the feature. The TortoiseHg team is usually very supportive. You don't need a deep understanding of GTK, Qt, or TortoiseHg - merely some time to do it. I guess it could be done in a day or two.