# HG changeset patch # User Pierre-Yves David # Date 1633073088 -7200 # Node ID 898de425bcd67571dcb983df3811b9140f974081 # Parent 252d2f3f0d173a1c86f2da351b021d382c7a6647 dirstate-item: replace call to new_possibly_dirty The constructor is on its way out, so we inline the last relevant call before dropping it. Differential Revision: https://phab.mercurial-scm.org/D11604 diff -r 252d2f3f0d17 -r 898de425bcd6 mercurial/pure/parsers.py --- a/mercurial/pure/parsers.py Fri Oct 01 09:23:28 2021 +0200 +++ b/mercurial/pure/parsers.py Fri Oct 01 09:24:48 2021 +0200 @@ -156,7 +156,7 @@ if size == FROM_P2: return cls(wc_tracked=True, p2_info=True) elif size == NONNORMAL: - return cls.new_possibly_dirty() + return cls(wc_tracked=True, p1_tracked=True) elif mtime == AMBIGUOUS_TIME: instance = cls.new_normal(mode, size, 42) instance._mtime = None diff -r 252d2f3f0d17 -r 898de425bcd6 rust/hg-core/src/dirstate/entry.rs --- a/rust/hg-core/src/dirstate/entry.rs Fri Oct 01 09:23:28 2021 +0200 +++ b/rust/hg-core/src/dirstate/entry.rs Fri Oct 01 09:24:48 2021 +0200 @@ -75,7 +75,11 @@ mtime: None, } } else if size == SIZE_NON_NORMAL { - Self::new_possibly_dirty() + Self { + flags: Flags::WDIR_TRACKED | Flags::P1_TRACKED, + mode_size: None, + mtime: None, + } } else if mtime == MTIME_UNSET { Self { flags: Flags::WDIR_TRACKED | Flags::P1_TRACKED,