clearcase - 如何在 RTC 源代码管理中恢复已删除的组件

标签 clearcase rtc

是否可以恢复已删除的组件?

我已经创建了我的流的快照,并且可以通过查看快照来查看已删除的组件。是否可以将组件从快照重新添加到流中?
或者是否有另一种恢复组件的方法?

(与 ClearCase 不同,在那里我必须使用组件基线重新设置 UCM 流的基础)

最佳答案

如果删除是指从磁盘中删除,则只需将 repo 工作区重新加载到本地工作区(或沙箱)中。
注意:本地工作区或沙箱与 ClearCase 快照 View 相同,但您不会称其为“快照”。
在 RTC 中,快照是一个全局标签,其中包含流上的所有组件最新信息。

如果删除,您的意思是从您的存储库工作区中删除,是的,您可以将其添加回来(它仍在流中),然后单击保存。

如果删除,您的意思是从流本身中删除,您可以将其添加回流级别(打开该流,然后在“组件”部分中,单击“添加”)。
如果它仍在您的存储库工作区中,则您可以将其传送回流。

OP补充说:

I mean "removed from the Stream itself" so if the component is also removed from my repo workspace, it cannot be restored from a snapshot?



是的,它可以从快照恢复:

I could:

  • create a new workspace from the snapshot,
  • update my flowtarget to be this newly created repo and accept the component from here.
  • Then update the flow target to be stream where component was removed and
  • deliver the component to stream.


我确认这应该有效。
而且您确实可以从快照创建一个 repo 工作区:这使用户能够快速调试具有“失败构建”状态的构建记录:每个构建首先在他们将操作的条件上放置一个快照。

关于clearcase - 如何在 RTC 源代码管理中恢复已删除的组件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12897984/

相关文章:

eclipse - RTC/爵士: what does "load a repository workspace" mean?

java - 可以在 Web 服务中包含客户端 JAVA API 库吗?

clearcase - CRCLI2002E 无法识别的命令 : "annotate"

maven - 有没有人尝试过使用 Mvn Deploy 部署到 Rational Team Concert

version-control - ReSharper 和 Rational Team Concert (RTC) - 它们配合得很好吗?

git - 将 git 与 rtc 一起使用——rsync 怎么样?

linux - 命令行将多个文件合并到一个目录中?

clearcase - UCM : How to create dynamic view (base clearcase) on arbitrary incremental baseline

clearcase - 是否可以在 perforce 中列出按上次 checkin 时间排序的文件夹中的文件?

windows - Clearcase 和 hudson - Unix 主机和 windows 从机