开发者

Is there a way in subversion to tell parent branch

Is there a way to tell parent branch in subversion? I have two branches BranchA and Branch开发者_如何学编程B I want to be able to tell their parent branch (from which branch was it originally copied).


You can see copy/merge/tag points via svn log -v --stop-on-copy. The -v is verbose, showing which paths were changed and that is where you'll see the copy from location and revision. --stop-on-copy is there to avoid walking past the most recent copy.


For those who are using TortoiseSVN, this information is available through its UI.

  • Select the branch you want, right click and select Show log option from TortoiseSVN's context menu
  • [OPTIONAL] To limit the logs, you can select the checkbox Stop on copy/rename
  • Select the commit in which you created the branch, and just take a look at the affected files section (below commit message)

For new branches, it should mention: Path, Action, Copy from path, Revision
The information you need is under Copy from path column.

Example:

Is there a way in subversion to tell parent branch

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜