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
--- 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):