# HG changeset patch # User Mads Kiilerich # Date 2019-10-13 00:11:33 # Node ID fd8c3f59b5444cf33880402f6145e18d9f192c32 # Parent d38f9117ee150d3efefd7fffde6c30ff5fe9c757 eol: cache needs update, also if it has same timestamp as the source Ignoring same timestamp could (in theory?) cause changes to not be detected. It might happen quite often that the cache is populated right after .hgeol has been updated and they thus have the same time stamp second. But we want correctness, and if it populates the cache so fast, then it can also not be a big problem to run it again next time when the timestamp has moved on. diff --git a/hgext/eol.py b/hgext/eol.py --- a/hgext/eol.py +++ b/hgext/eol.py @@ -401,7 +401,7 @@ def reposetup(ui, repo): except OSError: eolmtime = 0 - if eolmtime > cachemtime: + if eolmtime >= cachemtime and eolmtime > 0: self.ui.debug(b"eol: detected change in .hgeol\n") hgeoldata = self.wvfs.read(b'.hgeol')