Adding Uncommitted Changes to a New Patch with Mercurial Queues

The process for creating patches in Mercurial is as follows:

Create a patch with qnew → Make changes → Update patch

What if I have already made (not working) the changes, and I want to add them to the queue?

+5
source share
2 answers

It depends on your version, and it looks like it has changed in 1.5.1.

1.5.1 or later

The command will add any uncommitted changes by default.

qnew creates a new patch on top of the current patched patch (if any). The patch will be initialized with any outstanding changes to the operation of the directory.

earlier 1.5.1

qnew -f. docs:

-f: , . , .

+3

, , , . :

[... make changes ...]

hg qnew -m "foo bar changes" foobar.patch
--> new empty patch at top of queue
hg qrefresh
--> this adds all diffs from 'hg diff' into the current top patch

EDIT: @CaseBash , !

0

All Articles