[Updated] D11606: dirstate-item: replace a call to new_possibly_dirty
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sun Oct 3 21:38:20 UTC 2021
Closed by commit rHG79ebbe19d9e3: dirstate-item: replace a call to new_normal (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11606?vs=30611&id=30664
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11606/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11606
AFFECTED FILES
mercurial/pure/parsers.py
CHANGE DETAILS
diff --git a/mercurial/pure/parsers.py b/mercurial/pure/parsers.py
--- a/mercurial/pure/parsers.py
+++ b/mercurial/pure/parsers.py
@@ -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:
To: marmoute, #hg-reviewers
Cc: Alphare, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211003/dbfd8fa2/attachment-0002.html>
More information about the Mercurial-patches
mailing list