diff -r da0319e024c0 -r 19103e68a698 mercurial/manifest.py --- a/mercurial/manifest.py Tue Oct 02 13:37:12 2018 -0700 +++ b/mercurial/manifest.py Tue Oct 02 13:38:26 2018 -0700 @@ -720,15 +720,9 @@ return None todel = [] + loadlazy = self._loadlazy for k in visit: - kslash = k + '/' - ld = self._lazydirs.get(kslash) - if ld: - path, node, readsubtree = ld - self._dirs[kslash] = readsubtree(path, node) - todel.append(kslash) - for kslash in todel: - del self._lazydirs[kslash] + loadlazy(k + '/') return visit def __len__(self):