py3: fix kwargs handling in hgext/absorb.py
authorPulkit Goyal <pulkit@yandex-team.ru>
Sun, 23 Sep 2018 22:57:17 +0300
changeset 39786 d50125dec2c1
parent 39785 979e9f124caa
child 39787 e05d7c71f209
py3: fix kwargs handling in hgext/absorb.py This fixes couple of tests on Python 3. There is only one absorb test left failing on Python 3. Differential Revision: https://phab.mercurial-scm.org/D4694
contrib/python3-whitelist
hgext/absorb.py
--- a/contrib/python3-whitelist	Tue Sep 18 19:26:44 2018 -0700
+++ b/contrib/python3-whitelist	Sun Sep 23 22:57:17 2018 +0300
@@ -1,7 +1,9 @@
 test-abort-checkin.t
 test-absorb-filefixupstate.py
 test-absorb-phase.t
+test-absorb-rename.t
 test-absorb-strip.t
+test-absorb.t
 test-add.t
 test-addremove-similar.t
 test-addremove.t
--- a/hgext/absorb.py	Tue Sep 18 19:26:44 2018 -0700
+++ b/hgext/absorb.py	Sun Sep 23 22:57:17 2018 +0300
@@ -972,6 +972,7 @@
 
     Returns 0 on success, 1 if all chunks were ignored and nothing amended.
     """
+    opts = pycompat.byteskwargs(opts)
     state = absorb(ui, repo, pats=pats, opts=opts)
     if sum(s[0] for s in state.chunkstats.values()) == 0:
         return 1