ClearCase: When using clearfsimport to perform a reset merge, how can I keep it from creating evil twins?

后端 未结 1 1503
礼貌的吻别
礼貌的吻别 2020-12-20 05:43

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 cle

相关标签:
1条回答
  • 2020-12-20 06:48

    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.

    0 讨论(0)
提交回复
热议问题