Mercurial > hg-stable
changeset 16272:f97e7c378349
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.
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Thu, 15 Mar 2012 16:52:22 +0100 |
parents | 63a1bed65fa3 |
children | 12e3f93b1cbc |
files | hgext/eol.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: