changeset 38870:ae2962bb56a3

narrow: remove a repo file-cache invalidation It's unclear why this was needed. All tests pass without it. I asked Kyle Lippincott (who added the check) and he also doesn't remember what it was for. Differential Revision: https://phab.mercurial-scm.org/D4097
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 02 Aug 2018 14:30:40 -0700
parents ad24b581e4d9
children 204e074c188e
files mercurial/narrowspec.py
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/narrowspec.py	Fri Aug 03 11:09:41 2018 -0700
+++ b/mercurial/narrowspec.py	Thu Aug 02 14:30:40 2018 -0700
@@ -113,9 +113,6 @@
         # Treat "narrowspec does not exist" the same as "narrowspec file exists
         # and is empty".
         if e.errno == errno.ENOENT:
-            # Without this the next call to load will use the cached
-            # non-existence of the file, which can cause some odd issues.
-            repo.invalidate(clearfilecache=True)
             return set(), set()
         raise
     # maybe we should care about the profiles returned too