debugcommands: add some strkwargs love to some **args calls
authorAugie Fackler <augie@google.com>
Fri, 02 Mar 2018 14:12:17 -0500
changeset 36587 dfcf589a4031
parent 36586 ff6b8484400b
child 36588 281f66777ff0
debugcommands: add some strkwargs love to some **args calls Differential Revision: https://phab.mercurial-scm.org/D2563
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Fri Mar 02 14:10:34 2018 -0500
+++ b/mercurial/debugcommands.py	Fri Mar 02 14:12:17 2018 -0500
@@ -2790,12 +2790,13 @@
             if 'PUSHFILE' in args:
                 with open(args['PUSHFILE'], r'rb') as fh:
                     del args['PUSHFILE']
-                    res, output = peer._callpush(command, fh, **args)
+                    res, output = peer._callpush(command, fh,
+                                                 **pycompat.strkwargs(args))
                     ui.status(_('result: %s\n') % util.escapedata(res))
                     ui.status(_('remote output: %s\n') %
                               util.escapedata(output))
             else:
-                res = peer._call(command, **args)
+                res = peer._call(command, **pycompat.strkwargs(args))
                 ui.status(_('response: %s\n') % util.escapedata(res))
 
         elif action == 'batchbegin':