From patchwork Mon Feb 12 23:18:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2191: narrowspec: consistently use set() to copy sets From: phabricator X-Patchwork-Id: 27740 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Mon, 12 Feb 2018 23:18:41 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGb8bbe589fd47: narrowspec: consistently use set() to copy sets (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2191?vs=5507&id=5561 REVISION DETAIL https://phab.mercurial-scm.org/D2191 AFFECTED FILES hgext/narrow/narrowspec.py CHANGE DETAILS To: durin42, #hg-reviewers, indygreg Cc: mercurial-devel 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)