svn - 我如何知道一个分支是否已在 SVN/Mercurial/Git 中 merge ?

标签 svn git user-interface mercurial

是否有任何方法可以轻松破译(即一目了然)一个分支之前是否已经与另一个分支或主干 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/

相关文章:

git add 抛出警告 "CRLF will be replaced by LF in <file-name>"

user-interface - 为什么随机在 REBOL 的 GUI 中不起作用?

java - 将 JDialog 居中于父级之上

android - 如何在Android中从位图中裁剪圆形区域

svn "network connection closed unexpectedly"。防火墙问题?

svn - 如何自动解决所有 SVN 冲突? (Windows 命令行界面)

svn - Subversion、Hudson、GWT Google Plugin、M2Eclipse 的 Maven 多模块项目结构是什么?

svn - TeamCity SVN 代理端结帐失败,错误 svn : E200030: There are unfinished transactions detected in folder

git - IntelliJ IDEA 如何在不使用 .gitignore 文件的情况下自动检测和忽略 Git 存储库中的目标目录?

git - 在git中创建新分支时`fatal: Not a valid object name: ' master '`