py3: handle keyword arguments correctly in revset.py
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 10 Dec 2017 04:48:12 +0530
changeset 35376 6eee2bcc57c4
parent 35375 dce761558329
child 35377 93c4958d987c
py3: handle keyword arguments correctly in revset.py Differential Revision: https://phab.mercurial-scm.org/D1640
mercurial/revset.py
--- a/mercurial/revset.py	Sun Dec 10 04:48:00 2017 +0530
+++ b/mercurial/revset.py	Sun Dec 10 04:48:12 2017 +0530
@@ -22,6 +22,7 @@
     obsutil,
     pathutil,
     phases,
+    pycompat,
     registrar,
     repoview,
     revsetlang,
@@ -266,7 +267,8 @@
 def _destupdate(repo, subset, x):
     # experimental revset for update destination
     args = getargsdict(x, 'limit', 'clean')
-    return subset & baseset([destutil.destupdate(repo, **args)[0]])
+    return subset & baseset([destutil.destupdate(repo,
+                            **pycompat.strkwargs(args))[0]])
 
 @predicate('_destmerge')
 def _destmerge(repo, subset, x):