Mercurial > hg
diff rust/hg-core/src/dirstate_tree/on_disk.rs @ 49136:3f5e207f78be
rust: use `entry.tracked()` directly
This is the new API
Differential Revision: https://phab.mercurial-scm.org/D12534
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 12 Apr 2022 17:26:23 +0200 |
parents | 28a6178a07a2 |
children | 10b9f11daf15 |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate_tree/on_disk.rs Tue Apr 12 17:25:38 2022 +0200 +++ b/rust/hg-core/src/dirstate_tree/on_disk.rs Tue Apr 12 17:26:23 2022 +0200 @@ -587,7 +587,7 @@ ) -> Result<(), DirstateV2ParseError> { for node in read_nodes(on_disk, nodes)? { if let Some(entry) = node.entry()? { - if entry.state().is_tracked() { + if entry.tracked() { f(node.full_path(on_disk)?) } }