Best way to roll back to previous versions without

2019-07-29 18:56发布

问题:

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.

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.

I do have a large number of files that were added and changed and moved so I need something that will exclude all new additions and include all deletions since the target date.

Any hints?

回答1:

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?".

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