Patchwork D4097: narrow: remove a repo file-cache invalidation

login
register
mail settings
Submitter phabricator
Date Aug. 4, 2018, 12:12 a.m.
Message ID <a3df0d30a51449ccd05ebc2dd2b2b140@localhost.localdomain>
Download mbox | patch
Permalink /patch/33203/
State Not Applicable
Headers show

Comments

phabricator - Aug. 4, 2018, 12:12 a.m.
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




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

Patch

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