# HG changeset patch # User Pierre-Yves David # Date 1500788016 -7200 # Node ID b96349ae3e2af9b175944b58dcdbc26fcda324e8 # Parent 85e5a56db77685812179f419531f161279e91575 metaedit: add support for the -D and -U options diff -r 85e5a56db776 -r b96349ae3e2a README --- a/README Sun Jul 23 07:32:54 2017 +0200 +++ b/README Sun Jul 23 07:33:36 2017 +0200 @@ -128,6 +128,7 @@ (same as uncommit, but accessible through the amend commit) - uncommit: add support for --current-date and --current-user option - fold: add support for --current-date and --current-user option + - metaedit: add support for --current-date and --current-user option - topic: add --age option to sort topic by the most recently touched, - topic: add a 't0' to access the root of a topic while keeping it active, diff -r 85e5a56db776 -r b96349ae3e2a hgext3rd/evolve/evocommands.py --- a/hgext3rd/evolve/evocommands.py Sun Jul 23 07:32:54 2017 +0200 +++ b/hgext3rd/evolve/evocommands.py Sun Jul 23 07:33:36 2017 +0200 @@ -431,7 +431,7 @@ '^metaedit', [('r', 'rev', [], _("revision to edit")), ('', 'fold', None, _("also fold specified revisions into one")), - ] + commitopts + commitopts2, + ] + commitopts + commitopts2 + commitopts3, _('hg metaedit [OPTION]... [-r] [REV]')) def metaedit(ui, repo, *revs, **opts): """edit commit information @@ -462,6 +462,7 @@ See :hg:`help phases` for more about draft revisions, and :hg:`help revsets` for more about the `draft()` and `only()` keywords. """ + _resolveoptions(ui, opts) revs = list(revs) revs.extend(opts['rev']) if not revs: diff -r 85e5a56db776 -r b96349ae3e2a tests/test-metaedit.t --- a/tests/test-metaedit.t Sun Jul 23 07:32:54 2017 +0200 +++ b/tests/test-metaedit.t Sun Jul 23 07:33:36 2017 +0200 @@ -209,7 +209,7 @@ $ hg diff -r "10" -r "11" --hidden 'fold' one commit - $ hg metaedit "desc(D2)" --fold --user foobar3 + $ HGUSER=foobar3 hg metaedit "desc(D2)" --fold -U --config 1 changesets folded $ hg log -r "tip" --template '{rev}: {author}\n' 13: foobar3