Mercurial > public > mercurial-scm > hg
diff rust/hg-core/src/revlog/filelog.rs @ 49089:399439c12223
rust-revlog: make unaware of `Repo`
Differential Revision: https://phab.mercurial-scm.org/D12547
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 12 Apr 2022 21:25:56 -0700 |
parents | b5e226015a14 |
children | 3f86ee422095 |
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/filelog.rs Thu Apr 14 09:09:45 2022 -0700 +++ b/rust/hg-core/src/revlog/filelog.rs Tue Apr 12 21:25:56 2022 -0700 @@ -20,7 +20,12 @@ pub fn open(repo: &Repo, file_path: &HgPath) -> Result<Self, HgError> { let index_path = store_path(file_path, b".i"); let data_path = store_path(file_path, b".d"); - let revlog = Revlog::open(repo, index_path, Some(&data_path), false)?; + let revlog = Revlog::open( + &repo.store_vfs(), + index_path, + Some(&data_path), + false, + )?; Ok(Self { revlog }) }