ClearCase: When using clearfsimport to perform a r

2019-01-27 05:33发布

I had the same question as posted here:

Cleartool findmerge select changes from file 2 by default in all cases?

I tried the recommended fix (performing a clearfsimport from the source view to the destination view). I did this by (on Linux) setting a dynamic view for the destination, cd-ing into the VOB tag, then using /view/[source_viewname]/[vobname]/* as the source for the clearfsimport. The problem with this is that it attempts to create evil twins, which doesn't help the situation.

Are there any other ways of doing what's being asked in the original question posted above?

标签: clearcase
1条回答
Ridiculous、
2楼-- · 2019-01-27 06:21

You could try a mixed approach:

  • use findmerge -ftag -merge -abort, as suggested: that should at least merge the folders.
  • for each folder where there is a conflict, use clearfsimport.

The key, to avoid any evil twin, is to make sure the folder is merged first (that will create entries for the files of that folder).
Then the clearfsimport won't try to create new files, but will update those entries, avoiding the evil twins.

The OP karl_ proposes in the comments:

I think I'll do the following:

findmerge -type d -abort on the first pass, let manual merges fail
findmerge -type d -exec "ct merge (manually merge the element from source)"

findmerge -type f -abort on this pass, let manual merges fail
findmegre -type f -exec "ct merge (manually merge the element from source)"

That is the right plan: first merge folders, then files. That way, no evil twins.

查看更多
登录 后发表回答