如何在ClearCase UCM中删除文件? [英] How do delete a file in ClearCase UCM?

查看:139
本文介绍了如何在ClearCase UCM中删除文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图在ClearCase中删除一个受版本控制的文件。我已经知道我应该检出上级目录并检出它。

我不知道我是否应该检出要删除的文件。

I'm trying to delete a single version-controlled file in ClearCase. I already know that I'm supposed to check out the parent directory and its checked out.
I don't know if I'm supposed to check out the file I going to delete.

如果我不检出文件,则会出现错误:

If I don't check out the file I get the error:

cleartool: Error: Not a vob object: "MyFileName".

如果我检出文件,我会得到:

If I do check out the file I get:

cleartool: Error: Element "MyFileName" has checkouts.

因此,ClearCase知道它是其文件之一-但它不想删除它。我只是感到莫名其妙。

我已经反复更新并重新定级。

So ClearCase knows it's one of its files – but it doesn't want to delete it. I'm just baffled.
I've already updated and rebased repeatedly.

我如何在这里前进?

推荐答案

如果看到错误消息 已结帐,则表示需要在shell中执行命令:

If you see that error message "has checkouts", you need to do the command in a shell:

cd /path/to/view/your/view/path/to/parent/folder
cleartool rmname -force yourfile
cleartool checkin -nc .

查看更多信息:

  • "Delete file from ClearCase checked out on another branch", and
  • The IBM technote "About cleartool rmname and checkouts".

OP Tony Eastwood 报告do-delete-a-file-in-clearcase-ucm / 20048582?noredirect = 1#comment29893429_20048582>评论:

The OP Tony Eastwood reports in the comments:


问题似乎是由我引起的:

The issue seems to have been caused by me:


  • 签出上级目录

  • 取消选中父目录,

  • ,然后再次签出父目录

  • checking out the parent directory,
  • unchecking the parent,
  • and then checking out the parent directory again.

令人惊讶的是,一旦完成此操作,就必须运行更新(即使您已经完成了没有变化)。

运行更新后,很高兴执行 rmname 命令。

Surprisingly, once you've done this you have to run an update (even though you have made no changes).
Once I'd run update it was happy to execute the rmname command.

这篇关于如何在ClearCase UCM中删除文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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