mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-05 02:53:12 +00:00
repo: load correct OpHeadsStore
depending on repo's type
We forgot to actually call `StoreFactories::load_op_heads_store()` to load the right type of `OpHeadsStore` depending on the contents of `.jj/repo/op_heads/type`. That shouldn't have any effect yet since we only have one type so far, and there are no out-of-tree types yet either (clearly, since they would not work).
This commit is contained in:
parent
cf8c2b0717
commit
d6fcf4c7b2
1 changed files with 2 additions and 1 deletions
|
@ -463,7 +463,8 @@ impl RepoLoader {
|
|||
let store = Store::new(store_factories.load_backend(&repo_path.join("store")));
|
||||
let repo_settings = user_settings.with_repo(repo_path).unwrap();
|
||||
let op_store = Arc::from(store_factories.load_op_store(&repo_path.join("op_store")));
|
||||
let op_heads_store = Arc::new(SimpleOpHeadsStore::load(&repo_path.join("op_heads")));
|
||||
let op_heads_store =
|
||||
Arc::from(store_factories.load_op_heads_store(&repo_path.join("op_heads")));
|
||||
let index_store = Arc::new(IndexStore::load(repo_path.join("index")));
|
||||
Self {
|
||||
repo_path: repo_path.to_path_buf(),
|
||||
|
|
Loading…
Reference in a new issue