Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/src/dirstate/entry.rs @ 48170:da304f78a0e1
dirstate-item: replace call to new_from_p2
The constructor is on its way out, so we inline the last relevant call before
dropping it.
Differential Revision: https://phab.mercurial-scm.org/D11602
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 01 Oct 2021 09:21:52 +0200 |
parents | b45c4dc65adc |
children | 252d2f3f0d17 |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate/entry.rs Fri Oct 01 09:16:53 2021 +0200 +++ b/rust/hg-core/src/dirstate/entry.rs Fri Oct 01 09:21:52 2021 +0200 @@ -68,7 +68,12 @@ match state { EntryState::Normal => { if size == SIZE_FROM_OTHER_PARENT { - Self::new_from_p2() + Self { + // might be missing P1_TRACKED + flags: Flags::WDIR_TRACKED | Flags::P2_INFO, + mode_size: None, + mtime: None, + } } else if size == SIZE_NON_NORMAL { Self::new_possibly_dirty() } else if mtime == MTIME_UNSET {