创建和更新补丁

使用 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