hg qrefresh

hg qrefresh#

update the current patch#

hg qrefresh [-I] [-X] [-e] [-m TEXT] [-l FILE] [-s] [FILE]...

This command is provided by the mq extension.

If any file patterns are provided, the refreshed patch will contain only the modifications that match those patterns; the remaining modifications will remain in the working directory.

If -s/--short is specified, files currently included in the patch will be refreshed just like matched files and remain in the patch.

If -e/--edit is specified, Mercurial will start your configured editor for you to enter a message. In case qrefresh fails, you will find a backup of your message in .hg/last-message.txt.

hg add/remove/copy/rename work as usual, though you might want to use git-style patches (-g/--git or [diff] git=1) to track copies and renames. See the diffs help topic for more information on the git diff format.

Returns 0 on success.

Options

Every command accepts the global options.

-e

--edit

invoke editor on commit messages

-g

--git

use git extended diff format

-s

--short

refresh only files already in the patch and specified files

-U

--currentuser

add/update author field in patch with current user

-u

--user USER

add/update author field in patch with given user

-D

--currentdate

add/update date field in patch with current date

-d

--date DATE

add/update date field in patch with given date

-I

--include PATTERN [+]

include names matching the given patterns

-X

--exclude PATTERN [+]

exclude names matching the given patterns

-m

--message TEXT

use text as commit message

-l

--logfile FILE

read commit message from file

Options marked [+] can be repeated.