使用cleartool更改集合的前身 [英] Change set predecessor using cleartool

查看:58
本文介绍了使用cleartool更改集合的前身的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最终,我想通过使用命令提示符,并假设活动中的同一个文件有多个版本,来找出如何与具有变更集的前身的UCM活动中的版本进行比较。

Eventually I'd like to find out how to diff a version in an UCM activity with the change set predecessor, using the command prompt, assuming there is more than one version for the same file in the activity.

我已经知道如何在活动中获取文件的所有版本。通常,我可以将最早的版本与最新版本进行比较,但是如果最早的版本是第一个版本,因为这是一个新流,那么我将必须计算原始流。这也是我不知道该如何完成的事情。

I already know how to get all the versions of a file in an activity. In general I could diff the latest version in the set with the earliest-1, but if the earliest version is the first version, because this is a new stream, then I'll have to figure the original stream. And that is also something I don't know how to accomplish.

接收到一个版本并告诉其前身的单个cleartool命令将解决我的所有问题。

A single cleartool command that receives a version and tells its predecessor will solve all my problems.

任何想法?

推荐答案

我不知道单个命令。

我执行 cleartool descr -pred 将为您提供当前版本的前身,从而使您可以在

I do the a cleartool descr -pred would give you the predecessor of a current version, enabling you to get the version of said predecessor in the previous branch.

版本的扩展路径名由当前分支(在当前流中命名,代表当前流)以及紧接当前分支的分支组成。分支已创建,使您可以获取原始流的名称。

The extended pathname of a version is composed of the current branch (named ofter the current stream), and just before, of the branch from which the current branch has been created, which allows you to get the original stream name.

从那里开始,您需要进行比较。

但这需要脚本。

From there you have the version you need to make your diff.
However that will require a script.

这篇关于使用cleartool更改集合的前身的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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