ClearCase:如何找到我从哪个版本分支? [英] ClearCase: How do I find which version I branched off from?

查看:68
本文介绍了ClearCase:如何找到我从哪个版本分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于给定的文件,说我从 / main / 2 分支出来,然后在该分支中进行开发。 newBranch cleartool diff -pred 会将我加载的版本( / main / newBranch / LATEST )与进行比较/ main / 2 。我将通过哪个clearcase命令传递文件名或 / main / newBranch 并返回 / main / 2

For a given file, say I branched off from /main/2 and do my development in that branch newBranch. cleartool diff -pred would compare my loaded version (/main/newBranch/LATEST) to /main/2. Which clearcase command would I pass either the file name or /main/newBranch and would return /main/2?

我只是想找到 -pred 选择哪个版本,但是我找不到任何地方!

I'm just trying to find which version -pred selects, but I can't find out how anywhere!

跟进:
说我签入了文件,现在我的版本是 / main / newBranch / 3 。我如何仍可以将其与( / main / 2 )的分支进行比较?

FOLLOW UP: Say I checked the file in and now I'm in version /main/newBranch/3. How can I still compare it to where it was branched off from (/main/2)?

推荐答案

我将使用哪个ClearCase命令传递文件名或 / main / newBranch 并返回 / main / 2

Which ClearCase command would I pass either the file name or /main/newBranch and would return /main/2?

您可以尝试使用 cleartool lsvtree ,它将列出文件的所有版本。

You can try using cleartool lsvtree, which will list all versions of a file.

cleartool lsvtree myFile | grep main | head 1

如前所述, cleartool描述 更容易。

As noted, cleartool describe is easier.


我仍然如何将它与( / main / 2 )的分支进行比较?

您可以使用 / main / newBranch / 0 0 作为为每个新分支创建的占位符版本,此处与 / main / 2 ,使用 cleartool diff

You can use the /main/newBranch/0, 0 being the placeholder version created for each new branch, here identical to /main/2, using cleartool diff:

cleartool diff -pred yourFile yourFile@@/main/newBranch/0

这篇关于ClearCase:如何找到我从哪个版本分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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