HomePhabricator

treemanifest: fail gracefully in prefetch if no remote is configured

Authored by simpkins.

Description

treemanifest: fail gracefully in prefetch if no remote is configured

Summary:
If no remote path is configured raise an Abort exception, rather than returning
the path as None and crashing later on with an unfriendly exception due to
trying to use None as a string.

Test Plan: Updated test-treemanifest-prefetch.t to exercise this code.

Reviewers: singhsrb, durham, #fbhgext

Reviewed By: durham, #fbhgext

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

Details

Committed
simpkinsNov 29 2017, 3:19 PM
Reviewer
Restricted Project
Differential Revision
D1541: treemanifest: fail gracefully in prefetch if no remote is configured
Parents
rFBHGX6f34fada90d4: treemanifest: expose prefetchtrees() publicly
Branches
Unknown
Tags
Unknown