sapling/eden/mononoke/blobrepo
Mark Thomas fb5fdb9c15 bookmarks: remove repo_id from Bookmarks methods
Summary:
Remove the `repo_id` parameter from the `Bookmarks` trait methods.

The `repo_id` parameters was intended to allow a single `Bookmarks` implementation
to serve multiple repos.  In practise, however, each repo has its own config, which
results in a separate `Bookmarks` instance for each repo.  The `repo_id` parameter
complicates the API and provides no benefit.

To make this work, we switch to the `Builder` pattern for `SqlBookmarks`, which
allows us to inject the `repo_id` at construction time.  In fact nothing here
prevents us from adding back-end sharing later on, as these `SqlBookmarks` objects
are free to share data in their implementation.

Reviewed By: StanislavGlebik

Differential Revision: D22437089

fbshipit-source-id: d20e08ce6313108b74912683c620d25d6bf7ca01
2020-07-10 04:50:25 -07:00
..
blobrepo_hg bookmarks: remove repo_id from Bookmarks methods 2020-07-10 04:50:25 -07:00
blobsync Regenerate all Cargo.tomls after upgrade to futures 0.3.5 2020-07-06 20:49:43 -07:00
changeset_fetcher Clean out unused deps from our TARGETS files 2020-04-14 03:38:11 -07:00
errors blobrepo: add mutation store 2020-05-13 11:00:55 -07:00
factory bookmarks: remove repo_id from Bookmarks methods 2020-07-10 04:50:25 -07:00
override bookmarks: rework Bookmarks traits 2020-07-02 07:53:12 -07:00
repo_blobstore Regenerate all Cargo.tomls after upgrade to futures 0.3.5 2020-07-06 20:49:43 -07:00
src bookmarks: remove repo_id from Bookmarks methods 2020-07-10 04:50:25 -07:00
test Switch Blobstore to new-style futures 2020-06-26 03:54:42 -07:00
Cargo.toml Regenerate all Cargo.tomls after upgrade to futures 0.3.5 2020-07-06 20:49:43 -07:00