在CC中没有基准的情况下回滚到以前版本的最佳方法 [英] Best way to roll back to previous versions without baseline in CC
问题描述
我需要回滚到项目的先前版本,但实际上并没有创建基准。什么是做到这一点的最佳方法。我想我有一个很大的clearfsimport操作,它标记了所需视图会过期的当前版本。
I need to roll back to a previous version of my project, but I haven't really been creating baselines. Whats the best way to do this. I think I have a large clearfsimport operation that marks the current version that my desired view would pre-date.
创建这样的视图的最佳方法是什么?我希望我可以根据日期做一些事情,只是创建一个包含日期X和之前的所有版本或活动X和之前的所有版本的视图。
What is the best way to create a view like this. I was hoping I could do something based on date that would just create a view that includes all versions from Date X and before, or perhaps Activity X and before.
有什么提示吗?有很多文件要添加,更改和移动,所以我需要一些东西来排除所有新添加的东西,并包括自目标日期以来的所有删除。
Any hints?
推荐答案
使用非UCM视图,您可以在其中指定 选择规则的时间指令 :
请参阅 ClearCase:加载特定目录的旧版本吗?
Use a non-UCM view in which you can specify a time directive of selection rule:
see "ClearCase : Loading Older Version of a specific Directory?".
一旦您拥有内容正确的视图,便可以将其用作 clearfsimport -rmname
,将您的UCM视图用作目的地(请参见 clearfsimport ,但此处 -rmname
选项,请确保您在目标位置返回的文件数与在源视图中选择的文件数完全相同。)
Once you have a view with the right content, you can use it as a source for a clearfsimport -rmname
, using your UCM view as destination (see clearfsimport, except here the -rmname
option make sure you get back the exact same number of files in the destination than selected in your source view).
这篇关于在CC中没有基准的情况下回滚到以前版本的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!