D5507: narrow: drop now-unnecessary reassignment of repo attributes
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Mon Jan 7 08:46:18 UTC 2019
martinvonz 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/D5507
AFFECTED FILES
mercurial/localrepo.py
CHANGE DETAILS
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1254,12 +1254,6 @@
narrowspec.save(self, newincludes, newexcludes)
narrowspec.copytoworkingcopy(self)
self.invalidate(clearfilecache=True)
- # So the next access won't be considered a conflict
- # TODO: It seems like there should be a way of doing this that
- # doesn't involve replacing these attributes.
- self.narrowpats = newincludes, newexcludes
- self._narrowmatch = narrowspec.match(self.root, include=newincludes,
- exclude=newexcludes)
def __getitem__(self, changeid):
if changeid is None:
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list