Mercurial > public > mercurial-scm > hg
diff mercurial/dirstate.py @ 47532:ccbabaee5c36
dirstate-entry: add a `need_delay` method
This abstract the internal processing need for entry that would have an
ambiguous mtime (If I understand things correctly).
Differential Revision: https://phab.mercurial-scm.org/D10974
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 04 Jul 2021 02:13:53 +0200 |
parents | f5b8f0b9c129 |
children | 174d0bcce2eb |
line wrap: on
line diff
--- a/mercurial/dirstate.py Sun Jul 04 02:12:54 2021 +0200 +++ b/mercurial/dirstate.py Sun Jul 04 02:13:53 2021 +0200 @@ -754,7 +754,7 @@ if delaywrite > 0: # do we have any files to delay for? for f, e in pycompat.iteritems(self._map): - if e.state == b'n' and e[3] == now: + if e.need_delay(now): import time # to avoid useless import # rather than sleep n seconds, sleep until the next