Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/src/dirstate/entry.rs @ 48175:d0081dbca442
dirstate-item: replace call to new_normal
The constructor is on its way out, so we inline the last relevant call before
dropping it.
Differential Revision: https://phab.mercurial-scm.org/D11607
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 01 Oct 2021 09:29:32 +0200 |
parents | 20e41b367953 |
children | 1ab4523afe12 |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate/entry.rs Fri Oct 01 09:28:19 2021 +0200 +++ b/rust/hg-core/src/dirstate/entry.rs Fri Oct 01 09:29:32 2021 +0200 @@ -87,7 +87,11 @@ mtime: None, } } else { - Self::new_normal(mode, size, mtime) + Self { + flags: Flags::WDIR_TRACKED | Flags::P1_TRACKED, + mode_size: Some((mode, size)), + mtime: Some(mtime), + } } } EntryState::Added => Self {