Mercurial > hg
diff tests/test-obsolete.t @ 47431:fca9c63f160e
cmdutil: make amend() take str-keyed opts
I couldn't think of a reasonable change to the signature here, so
unfortunately it keeps the existing one.
Differential Revision: https://phab.mercurial-scm.org/D10862
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 10 Jun 2021 14:55:10 -0700 |
parents | 84a93fa7ecfd |
children | 5ced12cfa41b |
line wrap: on
line diff
--- a/tests/test-obsolete.t Thu Jun 10 14:47:14 2021 -0700 +++ b/tests/test-obsolete.t Thu Jun 10 14:55:10 2021 -0700 @@ -1478,9 +1478,8 @@ > command = registrar.command(cmdtable) > @command(b"amendtransient",[], _(b'hg amendtransient [rev]')) > def amend(ui, repo, *pats, **opts): - > opts = pycompat.byteskwargs(opts) - > opts[b'message'] = b'Test' - > opts[b'logfile'] = None + > opts['message'] = b'Test' + > opts['logfile'] = None > cmdutil.amend(ui, repo, repo[b'.'], {}, pats, opts) > ui.write(b'%s\n' % stringutil.pprint(repo.changelog.headrevs())) > EOF