changeset 35045:3ebae3ec4664

py3: handle keyword arguments in hgext/uncommit.py Differential Revision: https://phab.mercurial-scm.org/D1323
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 23 Oct 2017 00:06:23 +0530
parents e68dd1909af3
children aad6b9fdfc75
files hgext/uncommit.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/uncommit.py	Mon Oct 23 00:05:04 2017 +0530
+++ b/hgext/uncommit.py	Mon Oct 23 00:06:23 2017 +0530
@@ -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]