Clearcase删除目录 [英] Clearcase Delete Directory

查看:87
本文介绍了Clearcase删除目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我具有这样的目录结构:

I have a directory structure like so:

root_dir
  dir1
  dir2
    file1.txt
    file2.txt
    sub_dir
      file3.txt
      file4.txt

使用 rmname 删除 dir2 及其所有子元素的最佳方法是什么?我可以简单地执行 cleartool rmname dir2并使其递归删除其所有内容吗?

What is the best way to delete dir2 and all it's sub-elements using rmname? Can I simply do 'cleartool rmname dir2' and have it recursively delete all it's contents?

推荐答案

您只需要:

cleartool checkout -nc root_dir
cleartool rmname dir2
cleartool checkin root_dir

在新版本的中删除​​了对 dir2 的引用root_dir ,使 dir2 及其所有内容不可见(无法访问)。

您可以轻松地恢复 dir2 (及其所有内容),通过合并以前版本的 root_dir (仍引用 dir2 )与当前版本(您在其中rmname dir2 的版本)以重新创建新版本并在其中获得 dir2

That remove the reference to dir2 in the new version of root_dir, making dir2 and all its content invisible (not reachable).
And you can easily restore dir2 (and all its content) by merging the previous version of root_dir (which was still referencing dir2) with the current version (the one where you rmname'd dir2) in order to recreate a new version where you get back dir2.

注意:使用 rmname 时,您可能会看到一条错误消息即使该元素未在您执行操作的分支中签出,该元素也已签出 rmname

使用 rmname -force 是仍然执行rmname的解决方案:请参阅< a href = https://www-304.ibm.com/support/docview.wss?uid=swg21232758 rel = noreferrer>此技术说明。

Note: when using rmname, you might have an error message mentioning that the element is in checked out, even though it is not checked out in the branch where you are doing the rmname.
using rmname -force is the solution to still perform the rmname: see this technote.

这篇关于Clearcase删除目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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