diff --git a/hgext/narrow/narrowcommands.py b/hgext/narrow/narrowcommands.py --- a/hgext/narrow/narrowcommands.py +++ b/hgext/narrow/narrowcommands.py @@ -133,6 +133,7 @@ def archivenarrowcmd(orig, ui, repo, *args, **opts): """Wraps archive command to narrow the default includes.""" if narrowrepo.REQUIREMENT in repo.requirements: + opts = pycompat.byteskwargs(opts) repo_includes, repo_excludes = repo.narrowpats includes = set(opts.get('include', [])) excludes = set(opts.get('exclude', [])) @@ -142,6 +143,7 @@ opts['include'] = includes if excludes: opts['exclude'] = excludes + opts = pycompat.strkwargs(opts) return orig(ui, repo, *args, **opts) def pullbundle2extraprepare(orig, pullop, kwargs):