D2367: narrowcommands: add some missing strkwargs calls for py3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Feb 21 22:52:10 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5dbeddbf164a: narrowcommands: add some missing strkwargs calls for py3 (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2367?vs=5980&id=5983
REVISION DETAIL
https://phab.mercurial-scm.org/D2367
AFFECTED FILES
hgext/narrow/narrowcommands.py
CHANGE DETAILS
diff --git a/hgext/narrow/narrowcommands.py b/hgext/narrow/narrowcommands.py
--- a/hgext/narrow/narrowcommands.py
+++ b/hgext/narrow/narrowcommands.py
@@ -134,14 +134,14 @@
"""Wraps archive command to narrow the default includes."""
if narrowrepo.REQUIREMENT in repo.requirements:
repo_includes, repo_excludes = repo.narrowpats
- includes = set(opts.get('include', []))
- excludes = set(opts.get('exclude', []))
+ includes = set(opts.get(r'include', []))
+ excludes = set(opts.get(r'exclude', []))
includes, excludes, unused_invalid = narrowspec.restrictpatterns(
includes, excludes, repo_includes, repo_excludes)
if includes:
- opts['include'] = includes
+ opts[r'include'] = includes
if excludes:
- opts['exclude'] = excludes
+ opts[r'exclude'] = excludes
return orig(ui, repo, *args, **opts)
def pullbundle2extraprepare(orig, pullop, kwargs):
To: durin42, #hg-reviewers, indygreg
Cc: indygreg, pulkit, mercurial-devel
More information about the Mercurial-devel
mailing list