# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-10-22 18:36:23 # Node ID 3ebae3ec4664f11fbc2994ca9affe8f9dd5ffcfe # Parent e68dd1909af3268969cd050916fc8f66f0df749e py3: handle keyword arguments in hgext/uncommit.py Differential Revision: https://phab.mercurial-scm.org/D1323 diff --git a/hgext/uncommit.py b/hgext/uncommit.py --- a/hgext/uncommit.py +++ b/hgext/uncommit.py @@ -29,6 +29,7 @@ from mercurial import ( error, node, obsolete, + pycompat, registrar, scmutil, ) @@ -152,6 +153,7 @@ def uncommit(ui, repo, *pats, **opts): 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]