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

2017-12-09 Thread pulkit (Pulkit Goyal)
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=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
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


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

2017-12-09 Thread pulkit (Pulkit Goyal)
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel