hg-backout - Man Page

reverse effect of earlier changeset

Synopsis

hg backout [OPTION]... [-r] REV

Description

Prepare a new changeset with the effect of REV undone in the current working directory. If no conflicts were encountered, it will be committed immediately.

If REV is the parent of the working directory, then this new changeset is committed automatically (unless --no-commit is specified).

Note

hg backout cannot be used to fix either an unwanted or incorrect merge.

Examples:

Options

--merge

merge with old dirstate parent after backout

--commit

commit if no conflicts were encountered (DEPRECATED)

--no-commit

do not commit

--parent <REV>

parent to choose when backing out merge (DEPRECATED)

-r,--rev <REV>

revision to backout

-e,  --edit

invoke editor on commit messages

-t,--tool <TOOL>

specify merge tool

-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

[+] marked option can be specified multiple times