equal
deleted
inserted
replaced
18 |
18 |
19 impl Filelog { |
19 impl Filelog { |
20 pub fn open(repo: &Repo, file_path: &HgPath) -> Result<Self, HgError> { |
20 pub fn open(repo: &Repo, file_path: &HgPath) -> Result<Self, HgError> { |
21 let index_path = store_path(file_path, b".i"); |
21 let index_path = store_path(file_path, b".i"); |
22 let data_path = store_path(file_path, b".d"); |
22 let data_path = store_path(file_path, b".d"); |
23 let revlog = Revlog::open(repo, index_path, Some(&data_path), false)?; |
23 let revlog = Revlog::open( |
|
24 &repo.store_vfs(), |
|
25 index_path, |
|
26 Some(&data_path), |
|
27 false, |
|
28 )?; |
24 Ok(Self { revlog }) |
29 Ok(Self { revlog }) |
25 } |
30 } |
26 |
31 |
27 /// The given node ID is that of the file as found in a filelog, not of a |
32 /// The given node ID is that of the file as found in a filelog, not of a |
28 /// changeset. |
33 /// changeset. |