Page MenuHomePhabricator

treemanifest: demand convert flat manifest to tree manifest in treeonly mode
AbandonedPublic

Authored by singhsrb on Jan 5 2018, 11:50 PM.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

Eventually all the clients using the tree manifest will operate in
treeonly mode. In treeonly mode, we only read from tree manifests and
therefore, manifest related operations would fail for commits which only have
flat manifest. Example of such commits are old draft commits which were created
before the existence of tree manifest. One way to resolve this is to
automatically convert any flat manifests we come across to tree manifests. This
commit achieves that same.

Test Plan

Ran all the tests.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped