[Updated] D12475: rust-dirstatemap: use `DirstateEntry::tracked` directly
Alphare (Raphaël Gomès)
phabricator at mercurial-scm.org
Fri Apr 8 15:57:34 UTC 2022
Closed by commit rHG94f94aaadbee: rust-dirstatemap: use `DirstateEntry::tracked` directly (authored by Alphare).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12475?vs=32850&id=32911
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12475/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12475
AFFECTED FILES
rust/hg-core/src/dirstate_tree/dirstate_map.rs
CHANGE DETAILS
diff --git a/rust/hg-core/src/dirstate_tree/dirstate_map.rs b/rust/hg-core/src/dirstate_tree/dirstate_map.rs
--- a/rust/hg-core/src/dirstate_tree/dirstate_map.rs
+++ b/rust/hg-core/src/dirstate_tree/dirstate_map.rs
@@ -982,9 +982,7 @@
&mut self,
filename: &HgPath,
) -> Result<(), DirstateError> {
- let was_tracked = self
- .get(filename)?
- .map_or(false, |e| e.state().is_tracked());
+ let was_tracked = self.get(filename)?.map_or(false, |e| e.tracked());
struct Dropped {
was_tracked: bool,
had_entry: bool,
To: Alphare, #hg-reviewers, marmoute
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220408/73483e79/attachment-0002.html>
More information about the Mercurial-patches
mailing list