Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/dirstateutils/timestamp.py @ 48468:000130cfafb6
rhg: Update the dirstate on disk after status
Differential Revision: https://phab.mercurial-scm.org/D11840
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Thu, 25 Nov 2021 18:33:51 +0100 |
parents | ca42667c8d26 |
children | c8ca21962ff4 |
comparison
equal
deleted
inserted
replaced
48467:2097f63575a5 | 48468:000130cfafb6 |
---|---|
94 | 94 |
95 def reliable_mtime_of(stat_result, present_mtime): | 95 def reliable_mtime_of(stat_result, present_mtime): |
96 """same as `mtime_of`, but return None if the date might be ambiguous | 96 """same as `mtime_of`, but return None if the date might be ambiguous |
97 | 97 |
98 A modification time is reliable if it is older than "present_time" (or | 98 A modification time is reliable if it is older than "present_time" (or |
99 sufficiently in the futur). | 99 sufficiently in the future). |
100 | 100 |
101 Otherwise a concurrent modification might happens with the same mtime. | 101 Otherwise a concurrent modification might happens with the same mtime. |
102 """ | 102 """ |
103 file_mtime = mtime_of(stat_result) | 103 file_mtime = mtime_of(stat_result) |
104 file_second = file_mtime[0] | 104 file_second = file_mtime[0] |