mercurial/localrepo.py
changeset 36400 7b86aa31b004
parent 36373 0147a4730420
child 36422 04c319a07c7b
--- a/mercurial/localrepo.py	Sat Feb 24 16:16:14 2018 +0530
+++ b/mercurial/localrepo.py	Sat Feb 24 16:18:40 2018 +0530
@@ -2170,10 +2170,11 @@
             hookargs = {}
             if tr is not None:
                 hookargs.update(tr.hookargs)
-            hookargs['namespace'] = namespace
-            hookargs['key'] = key
-            hookargs['old'] = old
-            hookargs['new'] = new
+            hookargs = pycompat.strkwargs(hookargs)
+            hookargs[r'namespace'] = namespace
+            hookargs[r'key'] = key
+            hookargs[r'old'] = old
+            hookargs[r'new'] = new
             self.hook('prepushkey', throw=True, **hookargs)
         except error.HookAbort as exc:
             self.ui.write_err(_("pushkey-abort: %s\n") % exc)