建立和更新補丁
使用 hg qnew patch-name
建立新補丁,然後使用 hg qrefresh
更新它們:
hg qnew myFirstPatch // Creates a new patch called "myFirstPatch"
... // Edit some files
hg qrefresh // Updates "myFirstPatch" with changes
hg qnew mySecondPatch // Creates a new patch called "mySecondPatch" on top of "myFirstPatch"
... // Edid some files
hg qrefresh // Updates "mySecondPatch" with changes
使用提交訊息建立新補丁:
hg qnew -m "My first patch" myFirstPatch
更新當前補丁的提交訊息:
hg qrefresh -m "My new message"
更新當前補丁的提交訊息(多行):
hg qrefresh -e