D2563: debugcommands: add some strkwargs love to some **args calls

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Fri Mar 2 15:26:21 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGdfcf589a4031: debugcommands: add some strkwargs love to some **args calls (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2563?vs=6380&id=6386

REVISION DETAIL
  https://phab.mercurial-scm.org/D2563

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -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':



To: durin42, #hg-reviewers, yuja
Cc: mercurial-devel


More information about the Mercurial-devel mailing list