什么是“适当”?种方法从ClearCase快照中删除文件? [英] What's the "proper" way to delete files from a ClearCase snapshot?

查看:105
本文介绍了什么是“适当”?种方法从ClearCase快照中删除文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从快照视图中删除文件时,下次在ClearCase Explorer中查看快照时,它将显示 ??。已检出但已删除的图标。当我在快照上运行查找修改的文件时,未显示已删除的文件。在快照上运行更新视图会导致ClearCase重新将丢失的文件重新复制到我的视图中。

When I delete a file from my snapshot view, the next time I look at the snapshot in ClearCase Explorer, it shows the "??" checked-out-but-removed icon. When I run "Find Modified Files" on the snapshot, the deleted files aren't shown. Running "Update View" on the snapshot causes ClearCase to re-copy the missing files back into my view.

我想要的是:当我删除文件时从快照中进行更新,应该从视图中删除该文件,就像我已经通过ClearCase从动态视图中将其删除一样。最好的方法是什么?

What I want to happen is this: when I delete a file from my snapshot, and do an update, the file should be deleted from the view, just as if I had deleted it through ClearCase from a dynamic view. What's the best way to accomplish this?

我希望避免对ClearCase环境进行大量自定义。如果有一种标准的方法,我想尝试一下。如果cleartool可以向我显示符合此条件的所有文件的搜索结果,那么这对我而言已经足够。

I would prefer to avoid a lot of customization of my ClearCase environment. If there's a "standard" way to do this, I'd like to try that. If cleartool can show me search results for all files that fit this bill, that will be good enough for my purposes.

推荐答案

如果您从ClearCase Explorer中删除文件,就不会有任何问题:它将

If you delete the file from the ClearCase Explorer, you shouldn't have any issue: it will


  • 签出父目录

  • rmname 文件

  • 签入父目录

  • checkout the parent directory
  • rmname the file
  • checkin the parent directory

但是,如果您直接从Shell或Windows资源管理器中执行此操作,则不会通知ClearCase操作,因此?

But if you do it directly from a shell or a Windows Explorer, then ClearCase won't be informed of the operation, hence the "??" checked-out-but-removed status.

使用动态视图,如果没有ClearCase知道,则无法删除文件,因为动态视图是文件的封装系统完全由ClearCase管理。

With a dynamic view, you cannot remove a file without ClearCase knowing about it, since a dynamic view is an encapsulation of the file system managed entirely by ClearCase.

现在,让我们假设您直接从本机文件系统中删除了一堆检出文件(不是从ClearCase Explorer或带有ClearCase插件的IDE中获取),并且您要保持删除这些文件!

Now let's suppose you have deleted a bunch of check-out files directly from the native filesystem (not from the ClearCase Explorer or an IDE with a ClearCase plugin), and that you want those files to stay deleted!

然后调和这两种状态将是:

Then a way to reconcile the two status would be to:


  • cleartool更新。​​(位于快照视图的根目录)

  • 解析生成的 .updt 文件,并为每个检出的文件使用rmname( 类似于本文

  • cleartool update . (at the root directory of the snapshot view)
  • parse the generated ".updt" file and for each checked-out file, rmname it (like in this article)

这篇关于什么是“适当”?种方法从ClearCase快照中删除文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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