有没有人知道CVS命令行选项以获取上次检入的详细信息? [英] Does anyone know the CVS command line options to get the details of the last check in?

查看:119
本文介绍了有没有人知道CVS命令行选项以获取上次检入的详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows上使用CVS(使用WinCVS前端),并且想在我们的自动构建过程中添加上次检入的详细信息,无论何时构建失败,以便更容易修复。

I'm using CVS on Windows (with the WinCVS front end), and would like to add details of the last check in to the email from our automated build process, whenever a build fails, in order to make it easier to fix.

我需要知道已更改的文件,更改它们的用户和注释。

I need to know the files that have changed, the user that changed them, and the comment.

我一直在努力工作的命令行选项,但似乎没有得到准确的结果(获得太多的结果,而不是只是从一个签入,或从两个星期前的一些随机检查的细节)

I've been trying to work out the command line options, but never seem to get accurate results (either get too many result rather than just from one checkin, or details of some random check in from two weeks ago)

推荐答案

哇。

我忘记了这么做有多难。

I'd forgotten how hard this is to do. What I'd done before was a two stage process.

首先,运行

cvs history -c -a -D "7 days ago" |
    gawk '{ print "$1 == \"" $6 "\" && $2 == \"" $8 "/" $7 "\" { print \"" $2 " " $3 " " $6 " " $5 " " $8 "/" $7 "\"; next }" }' > /tmp/$$.awk

可收集有关前7天所有签入的信息,并生成

to gather information about all checkins in the previous 7 days and to generate a script that would be used to create a part of the email that was sent.

然后我将CVS / Entries文件拖放到包含断开文件的目录中)获取更多信息。

I then trawled the CVS/Entries file in the directory that contained the broken file(s) to get more info.

将两个人合并在一起,让我指责罪犯,并向他们发送电子邮件,通知他们他们打破了构建。

Mungeing the two together allowed me to finger the culprit and send an email to them notifying them that they'de broken the build.

对不起,这个答案不如我所希望的那么完整。

Sorry that this answer isn't as complete as I'd hoped.

这篇关于有没有人知道CVS命令行选项以获取上次检入的详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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