D1482: py3: use byteskwargs in sparse.py
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Tue Nov 21 07:53:47 UTC 2017
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This removes several dozen failures in Python 3.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D1482
AFFECTED FILES
hgext/sparse.py
CHANGE DETAILS
diff --git a/hgext/sparse.py b/hgext/sparse.py
--- a/hgext/sparse.py
+++ b/hgext/sparse.py
@@ -82,6 +82,7 @@
extensions,
hg,
match as matchmod,
+ pycompat,
registrar,
sparse,
util,
@@ -286,6 +287,7 @@
Returns 0 if editing the sparse checkout succeeds.
"""
+ opts = pycompat.byteskwargs(opts)
include = opts.get('include')
exclude = opts.get('exclude')
force = opts.get('force')
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list