Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/src/dirstate_tree/status.rs @ 50300:edcc35a4f1dc stable
dirstate: fix the bug in [status] dealing with committed&ignored directories
In particular, these directories can "infect" their sibling directories with
ignored status due to using a shared memoization cell by accident.
This fixes bug #6795.
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Tue, 14 Mar 2023 14:08:38 +0000 |
parents | bae51b50a5cf |
children | 14b57943ae6d |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate_tree/status.rs Tue Mar 14 14:01:47 2023 +0000 +++ b/rust/hg-core/src/dirstate_tree/status.rs Tue Mar 14 14:08:38 2023 +0000 @@ -244,7 +244,7 @@ match self.parent { None => false, Some(parent) => { - *(parent.cache.get_or_init(|| { + *(self.cache.get_or_init(|| { parent.force(ignore_fn) || ignore_fn(self.path) })) }