需要命令行来区别标签 [英] Need Command line for label difference

查看:56
本文介绍了需要命令行来区别标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想显示指定文件的两个标签之间更改的内容。

I would like to display the content changed between two labels for a file specified.

我使用 cleartool的find命令执行了此操作,但这是一个双向过程:

I did this using find command of cleartool earlier, but this was a two way process:


  • 首先使用<$ c确定两个标签之间的元素更改$ c> -version 切换到

  • ,然后在 diff 串行开关以显示输出。

  • First determine the elements changed between two labels using the -version switch in find
  • and then pass the two versions for a file in the diff serial switch to display the output.

我现在需要的是使用单个命令完成相同的操作,其中我将指定文件名和两个标签。

任何帮助将不胜感激。

What I need now is to have the same done using a single command wherein I will specify the filename and the two labels.
Any help will be appreciated.

推荐答案

如果您知道在哪些标签已应用,您可以使用扩展路径名,遵循版本选择器

(请参见关于版本扩展路径

If you know the branch in which the labels have been applied, you can use the extended pathname, following the rule of version selector:
(See about the version-extended path)

cleartool diff myFile@@/main/myBranch/MY_LABEL1 myFile@@/main/myBranch/MY_LABEL2






如果您不知道它们的完整扩展路径名,则首先需要在任何视图(快照或动态)中进行查找,以可视化文件(任何版本)。


if you don't know their full extended pathname, you need first a find, in any view (snapshot or dynamic), which visualize the file (at whatever version).

cleartool find myFile -ver "lbtype(MY_LABEL1)
  File@@/main/myBranch/MY_LABEL1

cleartool find myFile -ver "lbtype(MY_LABEL2)
  File@@/main/myBranch/MY_LABEL2

一旦拥有完整的扩展路径名,就可以使用 cleart ool diff

Once you have the full extended pathnames, you can use the cleartool diff.

这篇关于需要命令行来区别标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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