如何使用ClearCase注释 [英] How to use ClearCase Annotate

查看:66
本文介绍了如何使用ClearCase注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用注释,但有一个问题:如果显示的输出与以前的版本相同,则输出将忽略某些信息(日期和用户名)。我想在任何行中显示它们。

I'm trying to use annotate but have a problem: The output ignores some information (date and username) if it was displayed for the same version before. I'd like to display them in any line.

这是我的命令:

cleartool annotate -out - -rm -nhe -fmt "%Sd ||| %-12.12u ||| %Vn ||| ,,%Vn |||  " -rmf "" "G:\views\myview\myprojectvob\Form1.frm@@\main\john_myprject\12"

这是输出。我也想获取第二行和第三行的日期和用户名。

您知道是否可行吗?

That's the output. I'd like to get date and username for the second and third lines as well.
Do you know if that's possible?

2008-05-22 ||| john           ||| \main\john_myproject\10 ||| End Sub
                                  \main\john_myproject\10 |||
                                  \main\john_myproject\10 ||| Private Sub mnuContents_Click()
                                  \main\john_myproject\10 |||   On Error GoTo errHandle
                                  \main\john_myproject\10 |||
                                  \main\john_myproject\10 |||   Dim stat As Integer
                                  \main\john_myproject\10 |||   stat = ExecuteLink(App.path & "\manual.pdf")
                                  \main\john_myproject\10 |||
                                  \main\john_myproject\10 |||   Exit Sub
                                  \main\john_myproject\10 ||| errHandle:
                                  \main\john_myproject\10 |||   MsgBox ("Error with PDF file")


推荐答案

cleartool批注手册页,该命令始终使用省略号格式,目的是避免在同一作者修改的行上重复信息

According to the cleartool annotate man page, that command always uses an "elide-format", precisely to avoid duplicating informations on lines modified by the same author.

因此,唯一的解决方案是解析该命令的结果以插入相关信息。

So the only solution would be to parse the result of that command in order to insert the relevant information.

这篇关于如何使用ClearCase注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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