1
我最近使用hg record
效果很好,但它非常麻烦。 Emacs ediff
是一个很好的合并工具,但我还没有看到任何方式使它与hg record
一起工作。有什么我可以坚持在我的.hgrc,这将让我使用ediff
与hg record
?有没有办法用ediff使用hg记录?
我最近使用hg record
效果很好,但它非常麻烦。 Emacs ediff
是一个很好的合并工具,但我还没有看到任何方式使它与hg record
一起工作。有什么我可以坚持在我的.hgrc,这将让我使用ediff
与hg record
?有没有办法用ediff使用hg记录?
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
就个人而言,我只是犯一切尽早并经常 - 有未提交的数据惊吓bajezus了我。如果您想要一种方法来保持正在进行的数据提交但灵活检查Mercurial队列。