# HG changeset patch # User Pierre-Yves David # Date 1633073299 -7200 # Node ID 79ebbe19d9e3271ff2dc4782373936ee16f3978a # Parent 20e41b3679535ce45c0ec5e199fc6c6edb23d90c dirstate-item: replace a call to new_normal The constructor is on its way out, so we inline a relevant call before dropping it. Differential Revision: https://phab.mercurial-scm.org/D11606 diff -r 20e41b367953 -r 79ebbe19d9e3 mercurial/pure/parsers.py --- a/mercurial/pure/parsers.py Fri Oct 01 09:25:13 2021 +0200 +++ b/mercurial/pure/parsers.py Fri Oct 01 09:28:19 2021 +0200 @@ -150,9 +150,12 @@ elif size == NONNORMAL: return cls(wc_tracked=True, p1_tracked=True) elif mtime == AMBIGUOUS_TIME: - instance = cls.new_normal(mode, size, 42) - instance._mtime = None - return instance + return cls( + wc_tracked=True, + p1_tracked=True, + has_meaningful_mtime=False, + parentfiledata=(mode, size, 42), + ) else: return cls.new_normal(mode, size, mtime) else: