D4843: treemanifests: make _loadchildrensetlazy just call _loadlazy
spectral (Kyle Lippincott)
phabricator at mercurial-scm.org
Tue Oct 2 19:12:47 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG19103e68a698: treemanifests: make _loadchildrensetlazy just call _loadlazy (authored by spectral, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4843?vs=11580&id=11584
REVISION DETAIL
https://phab.mercurial-scm.org/D4843
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
@@ -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):
To: spectral, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list