Mercurial > hg
diff mercurial/encoding.py @ 30404:a1beadaa4061
manifest: change treemanifestctx to construct subtrees from the manifestlog
Previously, treemanifestctx would directly construct its subtrees. By making it
get the subtrees through manifestlog.get() we consolidate all treemanifestctx
creation into manifestlog.get() and therefore extensions that need to wrap
manifestctx creation (like narrow-hg) can intercept manifestctxs at that single
place.
This also means fetching subtrees will take advantage of the manifestlog ctx
cache now, which it did not before.
author | Durham Goode <durham@fb.com> |
---|---|
date | Mon, 14 Nov 2016 15:24:07 -0800 |
parents | e4a6b439acc5 |
children | ce36fa9b140c |