This is an archive of the discontinued Mercurial Phabricator instance.

fastmanifest: move tree writing to memmanifestctx.write()
ClosedPublic

Authored by durham on Aug 4 2017, 5:59 PM.
Tags
None
Subscribers
None

Details

Summary

Previously fastmanifest hooked into manifestrevlog.add() to write the local tree
manifest when a flat manifest is written. In a future diff we'll be moving the
datastore objects off of the opener object and on to the manifestlog. Since we
need the datastore to write trees, and the datastore will soon be on the
manifestlog, and the manifestlog isn't accessible from manifestrevlog.add(), we
need to move our tree write up to the ctx level instead. This is probably
cleaner anyway since the ctx level is where we differentiate manifest types, not
at the revlog/storage level.

Test Plan

Ran the tests

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Branch
default
Lint
Lint OK
Unit
Unit Test Errors

Event Timeline

durham created this revision.Aug 4 2017, 5:59 PM
ryanmce accepted this revision.Aug 6 2017, 4:37 AM
This revision is now accepted and ready to land.Aug 6 2017, 4:37 AM
This revision was automatically updated to reflect the committed changes.