Patchwork D2239: narrowcommands: more byteskwargs cleanup

login
register
mail settings
Submitter phabricator
Date Feb. 13, 2018, 11:14 p.m.
Message ID <differential-rev-PHID-DREV-2l3y25aniuwbtgjtiail-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/27855/
State Superseded
Headers show

Comments

phabricator - Feb. 13, 2018, 11:14 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/narrow/narrowcommands.py

CHANGE DETAILS




To: durin42, #hg-reviewers
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'))