hg metaedit

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

-r

--rev REV [+]

revision to edit

--fold

also fold specified revisions into one

-n

--note TEXT

store a note on metaedit

-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.