Patchwork D1482: py3: use byteskwargs in sparse.py

login
register
mail settings
Submitter phabricator
Date Dec. 2, 2017, 3:11 a.m.
Message ID <690b710a3944bd8bb59814682bfff99d@localhost.localdomain>
Download mbox | patch
Permalink /patch/25879/
State Not Applicable
Headers show

Comments

phabricator - Dec. 2, 2017, 3:11 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd8d06a930d60: py3: use byteskwargs in sparse.py (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1482?vs=3722&id=4075

REVISION DETAIL
  https://phab.mercurial-scm.org/D1482

AFFECTED FILES
  hgext/sparse.py

CHANGE DETAILS




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

Patch

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')