# HG changeset patch # User Martin Geisler # Date 1331826742 -3600 # Node ID f97e7c3783495c370fd092df6b58728bc22dce6d # Parent 63a1bed65fa32262a45136a583fb6af117215241 eol: document why os.utime doesn't work here I wanted to use os.utime(self.join("eol.cache"), None) as a cleaner way of touching the cache file -- but this fails when the cache doesn't exist. diff -r 63a1bed65fa3 -r f97e7c378349 hgext/eol.py --- a/hgext/eol.py Sun Mar 18 18:21:58 2012 -0500 +++ b/hgext/eol.py Thu Mar 15 16:52:22 2012 +0100 @@ -315,7 +315,7 @@ # again since the new .hgeol file might no # longer match a file it matched before self.dirstate.normallookup(f) - # Touch the cache to update mtime. + # Create or touch the cache to update mtime self.opener("eol.cache", "w").close() wlock.release() except error.LockUnavailable: