[PATCH RFC] histedit: add exec command (issue4036)

Durham Goode durham at fb.com
Sat Nov 16 14:19:49 CST 2013


On 11/12/13 10:01 AM, "Durham Goode" <durham at fb.com> wrote:

>histedit: add exec command (issue4036)
>
>This is RFC. Don't queue it (there's no documentation changes included
>yet).
>
>Adds an exec/x command to the available histedit commands. This allows
>users
>working with a stack of commits to execute an arbitrary shell command on
>each
>commit. This is the same as the git rebase -i exec command.
>
>For example, assume the user has a shell command 'arc amend' that adds
>a "Reviewed By: soandso" line to the commit message before they push the
>change.
>They can now do:
>
>pick d33tb11f Blah blah
>exec arc amend
>pick a53cb361 More blah
>exec arc amend

Talked in person at the sprint about this.  We think putting exec in a
separate command makes sense, and adding 'histprocess' or some equivalent
that operates like:

hg histprocess --rev <revset> --command <cmd>

Where each rev is rebased to not have children, has the command executed
on it, then it's children are rebased on to it.  This is better than
histedit in that it allows the command to run on nonlinear revsets.

I'll work on this later.



More information about the Mercurial-devel mailing list