HomePhabricator

treemanifest: expose prefetchtrees() publicly

Authored by simpkins.

Description

treemanifest: expose prefetchtrees() publicly

Summary:
Rename _prefetchtrees() to prefetchtrees(). Also change it to throw a
new MissingNodesError() exception type when it fails to download some nodes.
This makes it possible for callers to easily distinguish missing nodes from
other unexpected errors.

Test Plan:
Confirmed the existing unit tests pass. test-treemanifest-infinitepush.t
exercises the MissingNodesError code path.

Reviewers: #fbhgext, durham

Reviewed By: #fbhgext, durham

Subscribers: singhsrb

Differential Revision: https://phab.mercurial-scm.org/D1421

Details

Committed
simpkinsNov 29 2017, 3:19 PM
Reviewer
Restricted Project
Differential Revision
D1421: treemanifest: expose prefetchtrees() publicly
Parents
rFBHGX7a3b2b673eda: pushrebase: report details about public commits being pushed
Branches
Unknown
Tags
Unknown