Mercurial > hg
diff rust/hg-core/src/dirstate/entry.rs @ 48160:898de425bcd6
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
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 01 Oct 2021 09:24:48 +0200 |
parents | 252d2f3f0d17 |
children | 20e41b367953 |
line wrap: on
line diff
--- 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,