Martin Geisler  committed f97e7c3

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.

  • Participants
  • Parent commits 63a1bed

Comments (0)

Files changed (1)

File hgext/

                             # again since the new .hgeol file might no
                             # longer match a file it matched before
-                    # Touch the cache to update mtime.
+                    # Create or touch the cache to update mtime
                     self.opener("eol.cache", "w").close()
                 except error.LockUnavailable: