ClearCase:如何还原/获取特定日期/基准的快照视图? [英] ClearCase : how to revert / get a snapshot view of a specific date/baseline?

查看:128
本文介绍了ClearCase:如何还原/获取特定日期/基准的快照视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是UCM ClearCase。几天前,我犯了一个错误,显然,我已经覆盖了旧版本的许多文件的合并结果(来自流重定)。

My problem is with UCM ClearCase. I made a mistake a few days back in which, apparently, I have overwritten the result of a merge (from a stream rebase) of quite a few files with an old version.

我想在犯此错误之前获取流的快照,以便可以手动将更改合并回去(我也有快照)。然后,我将结果放入新版本的ClearCase中,一切都会恢复正常。

I would like to get a snapshot of my stream before I made this mistake so that I can manually merge my changes back in (I have a snapshot of it as well). Then, I'll put the result in ClearCase as a new version, and everything would be back to normal.

因此,如何获取特定日期的快照?

So, how can I get a snapshot of a specific date ?

如果可以帮忙的话,那时候,我确定了基准。

If that can help, at that date, I made a baseline.

我绝对需要一些自动的东西因为有数百个文件被更改,所以我无法手动检查它们。

I absolutely need something automatic because there are several hundreds of files that were changed, and I can't manually check them all.

谢谢

推荐答案

您可以将非UCM动态视图与基于时间的选择规则一起使用,以便在此日期查看文件。

You can use a dynamic view, non-UCM, with a time - based selection rule in order to see your files at this date.

请参见获取特定时间的所有版本-ClearCase UCM

然后,您可以 clearfsimport 这些文件返回到快照视图,以有效地还原您的更改。

Then you can clearfsimport those files back into your snapshot view, in order to effectively revert your changes.

请参见如何通过cleartool命令将文件夹中的所有文件添加到源代码管理中?

注意:如果您做了一个基线(增量或完整,没关系),它代表了您想要查看的文件,您可以简单地:

Note: if you did a baseline (incremental or full, it doesn't matter) which represents the files you want to see, you could simply:


  • 在您所说的基准流下创建一个子流

  • 以该新子流为基础

  • clearfsimport 从子流视图到快照视图。

  • make a sub-stream under the stream where you made said baseline
  • rebase it on that new sub-stream
  • clearfsimport from the view on the substream to your snapshot view.

这篇关于ClearCase:如何还原/获取特定日期/基准的快照视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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