# HG changeset patch # User Augie Fackler # Date 1518464230 18000 # Node ID b8bbe589fd47b1de4fc8305542584fa9a6f17cff # Parent 9c55bbc29dcf45285a9ba72a73e64750b7b0e2ee narrowspec: consistently use set() to copy sets Differential Revision: https://phab.mercurial-scm.org/D2191 diff -r 9c55bbc29dcf -r b8bbe589fd47 hgext/narrow/narrowspec.py --- a/hgext/narrow/narrowspec.py Mon Feb 12 14:27:32 2018 -0500 +++ b/hgext/narrow/narrowspec.py Mon Feb 12 14:37:10 2018 -0500 @@ -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)