Patchwork D1323: py3: handle keyword arguments in hgext/uncommit.py

login
register
mail settings
Submitter phabricator
Date Nov. 4, 2017, 9:27 a.m.
Message ID <differential-rev-PHID-DREV-tc6ffuasbhigmudgvw4p-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/25404/
State Superseded
Headers show

Comments

phabricator - Nov. 4, 2017, 9:27 a.m.
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/D1323

AFFECTED FILES
  hgext/uncommit.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/uncommit.py b/hgext/uncommit.py
--- a/hgext/uncommit.py
+++ b/hgext/uncommit.py
@@ -29,6 +29,7 @@ 
     error,
     node,
     obsolete,
+    pycompat,
     registrar,
     scmutil,
 )
@@ -152,6 +153,7 @@ 
     deleted in the changeset will be left unchanged, and so will remain
     modified in the working directory.
     """
+    opts = pycompat.byteskwargs(opts)
 
     with repo.wlock(), repo.lock():
         wctx = repo[None]