D4370: treemanifest: use visitchildrenset when filtering a manifest to a matcher
yuja (Yuya Nishihara)
phabricator at mercurial-scm.org
Tue Sep 11 08:26:07 EDT 2018
yuja added a comment.
Queued, thanks.
> + def _loadchildrensetlazy(self, visit):
> + if not visit:
> + return None
> + if visit == 'all' or visit == 'this':
> + self._loadalllazy()
> + return None
> +
> + todel = []
> + 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]
Any reason not to use `self._loadlazy(kslash)`?
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4370
To: spectral, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list