hg uncommit#

move changes from parent revision to working directory#

hg uncommit [OPTION]... [FILE]...

This command is provided by the evolve extension.

Changes to selected files in the checked out revision appear again as uncommitted changed in the working directory. A new revision without the selected changes is created, becomes the checked out revision, and obsoletes the previous one.

The --include option specifies patterns to uncommit. The --exclude option specifies patterns to keep in the commit.

The --rev argument let you change the commit file to a content of another revision. It still does not change the content of your file in the working directory.

The --interactive option lets you select hunks interactively to uncommit. You can uncommit parts of file using this option.

Return 0 if changed files are uncommitted.

Options

Every command accepts the global options.

-a

--all

uncommit all changes when no arguments given

-r

--rev REV

revert commit content to REV instead

--revert

discard working directory changes after uncommit

-n

--note TEXT

store a note on uncommit

-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

-d

--date DATE

record the specified date as commit date

-u

--user USER

record the specified user as committer

-D

--current-date

record the current date as commit date

-U

--current-user

record the current user as committer

--mq

operate on patch repository

Options marked [+] can be repeated.