D4275: manifest: set appropriate cache entry when clearing _dirlogcache()

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Wed Aug 22 12:37:51 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1347bcf52d51: manifest: set appropriate cache entry when clearing _dirlogcache() (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4275?vs=10347&id=10521

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

AFFECTED FILES
  mercurial/manifest.py

CHANGE DETAILS

diff --git a/mercurial/manifest.py b/mercurial/manifest.py
--- a/mercurial/manifest.py
+++ b/mercurial/manifest.py
@@ -1325,7 +1325,7 @@
     def clearcaches(self, clear_persisted_data=False):
         super(manifestrevlog, self).clearcaches()
         self._fulltextcache.clear(clear_persisted_data=clear_persisted_data)
-        self._dirlogcache = {'': self}
+        self._dirlogcache = {self._dir: self}
 
     def dirlog(self, d):
         if d:



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


More information about the Mercurial-devel mailing list