mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
3ff29a8810
Summary: Nearly all of the Mononoke SQL stores are instantiated once per repo but they don't store the `RepositoryId` anywhere so every method takes it as argument. And because providing the repo_id on every call is not ergonomical we tend to add methods to blob_repo that just call the right method with the right repo_id in on of the underlying stores (see `get_bonsai_from_globalrev` on blobrepo for example). Because my reviewers [pushed back](https://our.intern.facebook.com/intern/diff/D19972871/?transaction_id=196961774880671&dest_fbid=1282141621983439) when I've tried to do the same for bonsai_git_mapping I've decided to make it right by adding the repo_id to the BonsaiGitMapping. Reviewed By: krallin Differential Revision: D20029485 fbshipit-source-id: 7585c3bf9cc8fa3cbe59ab1e87938f567c09278a |
||
---|---|---|
.. | ||
src |