diff -r 9205d9be8b41 -r 68bb472aee9c mercurial/pure/parsers.py --- a/mercurial/pure/parsers.py Tue Oct 19 22:04:14 2021 +0200 +++ b/mercurial/pure/parsers.py Thu Oct 14 13:54:39 2021 +0200 @@ -302,7 +302,9 @@ return False self_ns = self._mtime_ns other_sec, other_ns = other_mtime - return self_sec == other_sec and self_ns == other_ns + return self_sec == other_sec and ( + self_ns == other_ns or self_ns == 0 or other_ns == 0 + ) @property def state(self):