# HG changeset patch # User spectral # Date 1538512706 25200 # Node ID 19103e68a69812df39ae52b3ece8820f475ba680 # Parent da0319e024c09de28089baf82acaa59b03f8a939 treemanifests: make _loadchildrensetlazy just call _loadlazy This was suggested on the original review for _loadchildrensetlazy (D4370), it's taken me a while to get to it though. Differential Revision: https://phab.mercurial-scm.org/D4843 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):