有没有办法在ediff中使用hg记录?

时间:2011-02-02 15:29:18

标签: emacs mercurial emacs-ediff

我最近使用hg record效果很好,但这非常麻烦。 Emacs ediff是一个很棒的合并工具,但我没有看到任何方法让它与hg record一起使用。我可以在我的.hgrc中添加一些内容,让ediffhg record一起使用吗?

1 个答案:

答案 0 :(得分:1)

record命令/扩展程序不会启动备用工具。如果您有未提交的更改,并且您只想记录其中一些更改,则可以使用此过程:

hg revert path/to/thefile  # resets the file back to the last committed version and saves modfied file in thefile.orig
ediff thefile thefile.orig # "merge" any changes you want comitted from .orig into thefile
hg commit # commit the changes you want
mv thefile.orig thefile    # put the uncomitted changes back in place

就个人而言,我只是提前和经常提交所有内容 - 未提交的数据会吓跑我。如果您想要一种方法来保持正在进行的工作数据,但可以灵活地检查Mercurial队列。

相关问题