D4097: narrow: remove a repo file-cache invalidation

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Fri Aug 3 20:12:49 EDT 2018


martinvonz updated this revision to Diff 9872.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4097?vs=9859&id=9872

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

AFFECTED FILES
  mercurial/narrowspec.py

CHANGE DETAILS

diff --git a/mercurial/narrowspec.py b/mercurial/narrowspec.py
--- a/mercurial/narrowspec.py
+++ b/mercurial/narrowspec.py
@@ -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



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


More information about the Mercurial-devel mailing list