How to find the common ancestor of two branches in SVN?

后端 未结 4 1213
花落未央
花落未央 2021-01-02 05:14

Imagine you\'ve got a big SVN tree with branches all over the place. There is the trunk, there are branches, those branches have branches, etc. So, given two branches in the

4条回答
  •  梦毁少年i
    2021-01-02 05:49

    I guess this is what you need

    svn log -v --stop-on-copy

    would return the below

    r43477 | username | 2010-09-21 13:19:58 +0530 (Tue, 21 Sep 2010) | 1 line Changed paths: A /trunk/re/XXX (from /branches/release/post_XXX/re/XXX:43476)

    From this you can identify that this branch is a ancestor of the current branch. If you combine this the logic mentioned by Victor Nicollet you will be able to get the results in real time.

提交回复
热议问题