changeset 41235:a2ae27993e16

narrow: drop now-unnecessary reassignment of repo attributes Differential Revision: https://phab.mercurial-scm.org/D5507
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 29 Dec 2018 23:09:07 -0800
parents 4c0d4bbdc395
children 44a51c1c8e17
files mercurial/localrepo.py
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Fri Jan 11 14:55:31 2019 +0100
+++ b/mercurial/localrepo.py	Sat Dec 29 23:09:07 2018 -0800
@@ -1261,12 +1261,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: