Patchwork D5507: narrow: drop now-unnecessary reassignment of repo attributes

login
register
mail settings
Submitter phabricator
Date Jan. 10, 2019, 9:51 p.m.
Message ID <ca9a03e5d97525768bd6166081e35969@localhost.localdomain>
Download mbox | patch
Permalink /patch/37632/
State Not Applicable
Headers show

Comments

phabricator - Jan. 10, 2019, 9:51 p.m.
martinvonz updated this revision to Diff 13147.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5507?vs=13056&id=13147

REVISION DETAIL
  https://phab.mercurial-scm.org/D5507

AFFECTED FILES
  mercurial/localrepo.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

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: