[PATCH 1 of 3 py3] exchange: hit opargs with pycompat.strkwargs before **-ing it

Augie Fackler raf at durin42.com
Sat Sep 16 15:09:46 UTC 2017


# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1505574548 14400
#      Sat Sep 16 11:09:08 2017 -0400
# Node ID dc9245ad5a97f90930367bbfc56ed8fc76f41e7c
# Parent  21fc747e1bc55489fea3858e97561b6553c17f94
exchange: hit opargs with pycompat.strkwargs before **-ing it

Fixes Python 3 problems.

diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -423,7 +423,7 @@ def push(repo, remote, force=False, revs
     if opargs is None:
         opargs = {}
     pushop = pushoperation(repo, remote, force, revs, newbranch, bookmarks,
-                           **opargs)
+                           **pycompat.strkwargs(opargs))
     if pushop.remote.local():
         missing = (set(pushop.repo.requirements)
                    - pushop.remote.local().supported)


More information about the Mercurial-devel mailing list