Mercurial > hg
diff hgext/churn.py @ 30290:1a0c1ad57833
manifest: throw LookupError if node not in revlog
When accessing a manifest via manifestlog[node], let's verify that the node
actually exists and throw a LookupError if it doesn't. This matches the old read
behavior, so we don't accidentally return invalid manifestctxs.
We do this in manifestlog instead of in the manifestctx/treemanifestctx
constructors because the treemanifest code currently relies on the fact that
certain code paths can produce treemanifests without touching the revlogs (and
it has tests that verify things work if certain revlogs are missing entirely, so
they break if we add validation that tries to read them).
author | Durham Goode <durham@fb.com> |
---|---|
date | Wed, 02 Nov 2016 17:33:31 -0700 |
parents | d5883fd055c6 |
children | a0e46f6b248b |