diff mercurial/cmdutil.py @ 47437: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 54849b65dc5f
children 7f7457f84311
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Thu Jun 10 14:47:14 2021 -0700
+++ b/mercurial/cmdutil.py	Thu Jun 10 14:55:10 2021 -0700
@@ -2783,6 +2783,7 @@
 
 
 def amend(ui, repo, old, extra, pats, opts):
+    opts = pycompat.byteskwargs(opts)
     # avoid cycle context -> subrepo -> cmdutil
     from . import context