如何让Mercurial在屏幕上显示"hg out --patch"差异作为视觉差异? [英] How to let Mercurial show "hg out --patch" diff as visual diff?
问题描述
看来hg out --patch
或hg out -p
是查看什么代码被推送到仓库的好方法(当被推送时)...但是diff是文本格式的.有没有办法让它也使用kdiff3
?
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?
推荐答案
hg outgoing --patch
分别显示每个变更集中的更改,如果您要寻找视觉表示,则可能不是您想要的.如果您不使用命名分支,则您更可能希望使用与hg diff -r your_latest_changeset -r remote_servers_latest_changeset
等效的GUI,其中最新的变更集是相应的tip
修订版.您可以使用 extdiff扩展在自己喜欢的GUI中得到它,产生最终命令,例如:
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
这篇关于如何让Mercurial在屏幕上显示"hg out --patch"差异作为视觉差异?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!