D1640: py3: handle keyword arguments correctly in revset.py

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Sat Dec 9 21:51:24 EST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6eee2bcc57c4: py3: handle keyword arguments correctly in revset.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1640?vs=4319&id=4331

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

AFFECTED FILES
  mercurial/revset.py

CHANGE DETAILS

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



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list