D1482: py3: use byteskwargs in sparse.py

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Sat Dec 2 03:11:16 UTC 2017


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

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, pulkit, yuja
Cc: pulkit, mercurial-devel


More information about the Mercurial-devel mailing list