How to let Mercurial show “hg out --patch” diff as visual diff?

心不动则不痛 提交于 2019-12-04 23:38:46

问题


It looks like hg out --patch or hg out -p is a good way to see what code is pushed out to the repo (when it is pushed)... but the diff is in text format. Is there a way to make it use kdiff3 as well?


回答1:


hg outgoing --patch shows the changes in each changeset separately, which probably isn't what you want if you're looking for a visual representation. You more likely want the GUI equivalent of hg diff -r your_latest_changeset -r remote_servers_latest_changeset where the latest changesets are the respective tip revisions if you're not using named branches. You can get that in your favorite GUI using the extdiff extension yielding a final command like:

hg extdiff -p kdiff3 -r your_latest_changeset -r remote_servers_latest_changeset



回答2:


$ hg out --patch | mdr

Will give you a graphical view

You'll need MDR (mac and win)



来源:https://stackoverflow.com/questions/3209372/how-to-let-mercurial-show-hg-out-patch-diff-as-visual-diff

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!