mirror of
https://github.com/martinvonz/jj.git
synced 2024-11-11 13:46:02 +03:00
index: get generation number from specific impl in test
This commit is contained in:
parent
a5b79f9b0e
commit
baea314fc0
@ -35,7 +35,7 @@ fn child_commit<'repo>(
|
||||
}
|
||||
|
||||
// Helper just to reduce line wrapping
|
||||
fn generation_number(index: &dyn Index, commit_id: &CommitId) -> u32 {
|
||||
fn generation_number(index: &ReadonlyIndexImpl, commit_id: &CommitId) -> u32 {
|
||||
index.entry_by_id(commit_id).unwrap().generation_number()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user