eol: document why os.utime doesn't work here
authorMartin Geisler <mg@aragost.com>
Thu, 15 Mar 2012 16:52:22 +0100
changeset 16272 f97e7c378349
parent 16271 63a1bed65fa3
child 16273 12e3f93b1cbc
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.
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: