hg metaedit#
edit commit information#
hg metaedit [OPTION]... [[-r] REV]...
This command is provided by the evolve extension.
Edits the commit information for the specified revisions. By default, edits commit information for the working directory parent.
With --fold, also folds multiple revisions into one if necessary. In this case, the given revisions must form a linear unbroken chain.
Some examples:
Edit the commit message for the working directory parent:
hg metaedit
Change the username for the working directory parent:
hg metaedit --user 'New User <new-email@example.com>'
Combine all draft revisions that are ancestors of foo but not of @ into one:
hg metaedit --fold 'draft() and only(foo,@)'
See `hg help phases` for more about draft revisions, and `hg help revsets` for more about the draft() and only() keywords.
Options
|
|
revision to edit |
|
also fold specified revisions into one |
|
|
|
store a note on metaedit |
|
|
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 |
|
operate on patch repository |
Options marked [+] can be repeated.