如何用一个命令删除一个clearcase分支? [英] How to delete a clearcase branch with a single command?

查看:138
本文介绍了如何用一个命令删除一个clearcase分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心用错误的配置规范创建了一个分支,并且在那里进行了合并,这本来是不可以的。有没有办法用一个唯一的命令删除该分支,就像它从未存在过一样?分支中没有检出的文件。

I've accidentally created a branch with the wrong config spec and I've made a merge in there that wasn't meant to be done. Is there a way to remove this branch like it never existed, with one and only command? There are no checked-out files in the branch.

我可以浏览所有文件并手动执行,因为只有3个文件被合并。但是,如果有3000个而不是3个呢?

I could go through all files and do it manually since there are only 3 files that were merged. But what if there were 3000 instead of 3?

推荐答案

您可以尝试使用 cleartool rmtype brtype:xxx

You can try and delete the byrtpe (branch type) with cleartool rmtype brtype:xxx.

只有在谈论全新的分支机构时才有可能仅在此实例中使用(即,您需要删除该分支 type all 个实例:分支类型的实例是创建为引用版本的分支

That is possible only if you are talking about a brand new branch, which was used only in this instance (that is, where you need to delete all instances of that branch type: an instance of a branch type is a branch created to reference a version at a checkin).

然后(如果该分支中的 only 版本是错误的合并版本),则可以执行以下操作:

Then (if the only versions in that branches are the wrong merged ones), you could do:

cleartool rmtype -rmall brtype:yourBranch@\avob

同样,

这是一个危险的命令,只应用于具有几个版本的新分支。

Again, that is a dangerous command, and should only be used for a new branch with a few versions.

code> -rmall 将首先删除所有分支类型实例(即实际的分支及其关联的版本和标签)。

然后将删除分支类型本身。

The -rmall will first remove all branch type instances (ie the actual branches, and their associated versions and labels).
Then the branch type itself will be removed.

这篇关于如何用一个命令删除一个clearcase分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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