sapling/eden/mononoke/commit_rewriting
Alex Hornby 935a7ddfc8 mononoke: remove the need to pass in cachelib settings twice
Summary:
Previously needed to pass in cachelib settings once to MononokeAppBuilder and once to parse_and_init_cachelib.

This change adds a MononokeClapApp and MononokeMatches that preserve the settings, thus preventing the need to pass them in twice (and thus avoiding possible inconsistency)

MononokeMatches uses MaybeOwned to hold the inner ArgMatches, which allows us to hold both the usual reference case from get_matches and an owned case for get_matches_from which is used in test cases.

Reviewed By: krallin

Differential Revision: D24788450

fbshipit-source-id: aad5fff2edda305177dcefa4b3a98ab99bc2d811
2020-12-02 07:27:23 -08:00
..
backsyncer mononoke: show cachelib cache_size in --help usage 2020-12-02 07:27:23 -08:00
bookmark_renaming add newtype for CommitSyncConfigVersion 2020-06-26 02:45:26 -07:00
bookmarks_validator mononoke: show cachelib cache_size in --help usage 2020-12-02 07:27:23 -08:00
commit_validator mononoke: remove the need to pass in cachelib settings twice 2020-12-02 07:27:23 -08:00
cross_repo_sync scuba: turn ScubaSampleBuilderExt into a wrapper struct 2020-11-30 21:26:24 -08:00
live_commit_sync_config mononoke: remove noisy logging 2020-10-20 07:41:48 -07:00
megarepo mononoke: remove the need to pass in cachelib settings twice 2020-12-02 07:27:23 -08:00
mononoke_x_repo_sync_job mononoke: remove the need to pass in cachelib settings twice 2020-12-02 07:27:23 -08:00
movers mononoke: fix movers behaviour when we have preserved paths 2020-10-15 06:20:33 -07:00
synced_commit_mapping rust-shed/futures_01_ext: rename futures_ext to futures_01_ext 2020-11-05 06:07:16 -08:00