Patchwork D2239: narrowcommands: more byteskwargs cleanup

login
register
mail settings
Submitter phabricator
Date Feb. 14, 2018, 5:05 a.m.
Message ID <75ff10445d1b7bb1f45bace9a53f62d7@localhost.localdomain>
Download mbox | patch
Permalink /patch/27869/
State Not Applicable
Headers show

Comments

phabricator - Feb. 14, 2018, 5:05 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGccf7ae119769: narrowcommands: more byteskwargs cleanup (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2239?vs=5661&id=5675

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

AFFECTED FILES
  hgext/narrow/narrowcommands.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/hgext/narrow/narrowcommands.py b/hgext/narrow/narrowcommands.py
--- a/hgext/narrow/narrowcommands.py
+++ b/hgext/narrow/narrowcommands.py
@@ -332,6 +332,7 @@ 
     If --clear is specified without any further options, the narrowspec will be
     empty and will not match any files.
     """
+    opts = pycompat.byteskwargs(opts)
     if narrowrepo.REQUIREMENT not in repo.requirements:
         ui.warn(_('The narrow command is only supported on respositories cloned'
                   ' with --narrow.\n'))