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隊列。