如何获取注释中不包含Jira bug密钥的所有SVN提交? [英] How to get all SVN commits that do not include Jira bug key in the comment?

查看:117
本文介绍了如何获取注释中不包含Jira bug密钥的所有SVN提交?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了Jira和Fisheye,以便可以在提交注释中包含Jira键(

I have Jira and Fisheye setup so that I can include Jira key in the commit comment (Smart Commits). Fisheye will link source code and Jira issue mentioned in the commit.

我不想使用 JIRA提交接受插件拒绝没有Jira键的提交.由于过于严格.但是仍然希望在没有Jira键的情况下监视提交.

I would not like to use something like JIRA Commit Acceptance Plugin to decline commits without Jira keys. As it is too restrictive. But would still like to monitor commits without Jira keys.

如何获取所有在注释中不包含Jira bug Key的SVN提交的报告?

How to get a report of all SVN commits that do not include Jira bug Key in the comment?

推荐答案

您可以在带有工作副本的目录中的UNIX上运行以下命令:

You can run following command on UNIX in the directory with your working copy:

svn log | grep -v '\--' | awk 'ORS=(NR%3)?" ":"\n"' | grep -v "[ISSUE_PREFIX]"

其中[ISSUE_PREFIX]是JIRA问题的前缀.例如,JPA对于JPA-123之类的问题.

where [ISSUE_PREFIX] is your JIRA issue prefix. For example, JPA for such issues as JPA-123.

它将具有以下输出:

r33 | user3 | 2011-12-21 16:29:29 +0200 (Wed, 21 Dec 2011) | 1 line  Third commit log without JIRA key
r22 | user2 | 2011-12-21 16:28:19 +0200 (Wed, 21 Dec 2011) | 1 line  Second commit log without JIRA key
r11 | user1 | 2011-12-21 16:27:18 +0200 (Wed, 21 Dec 2011) | 1 line  First commit log without JIRA key

这篇关于如何获取注释中不包含Jira bug密钥的所有SVN提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆