是否有任何方法可以轻松破译(即一目了然)一个分支之前是否已经与另一个分支或主干 merge ?我能弄清楚的最接近的方法是查看提交说明并显示 merge 的提交说明。这样做的缺点似乎是,除非您知道提交说明是从哪个分支导入的,否则无法破译哪些分支已被 merge 。
编辑:在这方面,Mercurial 或 Git 是否比 SVN 更直观?
最佳答案
Is Mercurial or Git any more intuitive than SVN for this?
是的,非常重要:
sjl at ecgtheow in ~/src/hg-review on webui at tip
[10] $ hg glog
@ changeset: 113:c5debb475273 Steve Losh tip webui
| summary: Add file folding.
|
o changeset: 112:a3ad66636756 Steve Losh webui
| summary: Show skipped-line comments.
|
o changeset: 111:2e65351af702 Steve Losh webui
| summary: Rough cut of line-level comments.
|
| o changeset: 110:b599ca22418d Steve Losh
|/| summary: Merge the bug fix.
| |
o | changeset: 109:e2ddb8631463 Steve Losh webui
| | summary: Fix the event not defined bug.
| |
| o changeset: 108:001f5ecfd9bc Steve Losh
|/| summary: Merge the webui skipped line counts -- too important to leave in the
| | branch.
| |
o | changeset: 107:1cc8e18b1b43 Steve Losh webui
| | summary: Add skipped line counts to diffs.
| |
编辑: Git 有一个 git log --graph
选项,它与 Mercurial 的几乎相同,除了没有有用的 you-are-here @
字符。
关于svn - 我如何知道一个分支是否已在 SVN/Mercurial/Git 中 merge ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1621167/