D2191: narrowspec: consistently use set() to copy sets
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon Feb 12 20:03:35 UTC 2018
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/D2191
AFFECTED FILES
hgext/narrow/narrowspec.py
CHANGE DETAILS
diff --git a/hgext/narrow/narrowspec.py b/hgext/narrow/narrowspec.py
--- a/hgext/narrow/narrowspec.py
+++ b/hgext/narrow/narrowspec.py
@@ -180,7 +180,7 @@
>>> restrictpatterns({'f1/$non_exitent_var'}, {}, ['f1','f2'], [])
(set(['f1/$non_exitent_var']), {})
"""
- res_excludes = req_excludes.copy()
+ res_excludes = set(req_excludes)
res_excludes.update(repo_excludes)
if not req_includes:
res_includes = set(repo_includes)
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list