Commits

Adrian Buehlmann committed cb77bac

overlay server: do not log missing .hg/thgstatus files

ENOENT is a normal use case

Comments (0)

Files changed (1)

TortoiseHgOverlayServer.py

     sys.stderr = BlackHole()
 
 import os
+import errno
 import time
 import threading
 import cStringIO
                 if not e.startswith('@@noicons'):
                     unlink(tfn)
             except (IOError, OSError), e:
-                logger.msg("Error while trying to remove %s (%s)" % (tfn, e))
-                pass
+                if e.errno != errno.ENOENT:
+                    logger.msg("Error while trying to remove %s (%s)" % (tfn, e))
         if notifypaths:
             shlib.shell_notify(list(notifypaths))