ClearCase : how to revert / get a snapshot view of a specific date/baseline?

蓝咒 提交于 2019-12-08 08:15:27

问题


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.

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.

Thank you


回答1:


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

See Get all versions from a specific time - ClearCase UCM

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

See How to add all the files in a folder to source control via cleartool command?


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

  • 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.


来源:https://stackoverflow.com/questions/13532942/clearcase-how-to-revert-get-a-snapshot-view-of-a-specific-date-baseline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!