Command line to list all merge(copies) in subversion?

后端 未结 2 1909
灰色年华
灰色年华 2021-02-02 03:39

How can you list all subversion merges?

For example:

Trunk ____9_____14____20___
          \\      \\     \\
           \\______\\_____\\____
Branch01           


        
相关标签:
2条回答
  • 2021-02-02 04:30

    During each merge operation, the svn:mergeinfo property is changed to record the merge. The mergeinfo will be on Branch01 in this case. Subversion only records where changes are merged from, not where they are merged to.

    I'm not sure if it's enough in your use case, but you could try to find out all revisions of Branch01 that have mergeinfo changes?

    0 讨论(0)
  • 2021-02-02 04:40

    You can use the svn plist command for this...

     svn plist -v svn:mergeinfo URL/branches/Branch01
    

    will print out the information about the branch

    an other way is to use the --use-merge-history

    svn log -v --use-merge-history URL/branches/Branch01
    

    EDIT: The following seemed to me what you are searching for.

    svn mergeinfo URL/trunk URL/branches/Branch01 --show-revs merged
    
    0 讨论(0)
提交回复
热议问题