Merge arrow in clear case

前端 未结 3 786
一生所求
一生所求 2020-12-03 19:59

I have to merge all objects from a sub branch to main branch recursively. I would like to merge manually by check in the code from sub branch to main branch instead of using

相关标签:
3条回答
  • 2020-12-03 20:38

    According to the merge man page,

    cleartool merge -ndata -to aFile -version /main/a/SourceVersion /main/a/DestVersion
    

    will draw a red arrow without performing any actual merges.

    Since you have made your checkout/checkings in a branch or a UCM activity, what you need to do is:

    • be in your destination view (the one where the merge occurred)
    • query all the versions you made for that merge
    • extract the file for each version
    • extract the destination version
    • compute the source version (for instance /main/aBranch/LATEST)
    • do a "merge -ndata"

    So, it is not so much a "recursive" algorithm, but rather an enumeration of all versions involved in this merge in order to draw the appropriate red arrows.

    0 讨论(0)
  • 2020-12-03 20:44

    Just use the ClearCase Merge Manager - it should take all the pain out of doing a task like this.

    0 讨论(0)
  • 2020-12-03 20:45

    I know this is 8 months later but have you tried this?

    cleartool find . -type f -nxname -exec 'cleartool merge -to $CLEARCASE_PN -ndata -version /main/aBranch/LATEST '
    

    Probably do not need the -nxname in the first part. I changed to the directory that I wanted to create only merge arrows to and did a FIND for everything in the directory.

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