hg amend#
combine a changeset with updates and replace it with a new one#
hg amend [OPTION]... [FILE]...
Aliases: refresh
This command is provided by the evolve extension.
Commits a new changeset incorporating both the changes to the given files and all the changes from the current parent changeset into the repository.
See `hg commit` for details about committing changes.
If you don't specify -m, the parent's message will be reused.
If --extract is specified, the behavior of hg amend is reversed: Changes to selected files in the checked out revision appear again as uncommitted changed in the working directory.
Returns 0 on success, 1 if nothing changed.
Options
|
|
mark new/missing files as added/removed before committing |
|
|
match all files |
|
|
invoke editor on commit messages |
|
extract changes from the commit to the working copy |
|
|
make changes to wdir parent by editing patch |
|
|
mark a branch as closed, hiding it from the branch list |
|
|
|
use the secret phase for committing |
|
|
store a note on amend |
|
|
include names matching the given patterns |
|
|
exclude names matching the given patterns |
|
|
use text as commit message |
|
|
read commit message from file |
|
|
record the specified date as commit date |
|
|
record the specified user as committer |
|
|
record the current date as commit date |
|
|
record the current user as committer |
|
|
use interactive mode |
|
operate on patch repository |
Options marked [+] can be repeated.