hgext/sparse.py
changeset 35192 d8d06a930d60
parent 33685 e1c56486d1aa
child 35885 7625b4f7db70
--- a/hgext/sparse.py	Mon Nov 20 23:13:09 2017 -0800
+++ b/hgext/sparse.py	Mon Nov 20 23:23:10 2017 -0800
@@ -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')