1. Takayuki KONDO
  2. thg


David Golub  committed 110b74b

overlay: wait for unset entries to be resettable before updating thgstatus

This way, a single pass through update_batch will be sufficient to have all
files and folders marked with the correct icon overlays.

  • Participants
  • Parent commits 570ddfc
  • Branches default

Comments (0)

Files changed (1)

File TortoiseHgOverlayServer.py

View file
         _stderr = sys.stderr
         sys.stderr = errorstream
+            # Ensure that all unset dirstate entries can be updated.
+            time.sleep(2)
             updated_any = False
             for r in sorted(roots):
             notifypaths -= failedroots
             if notifypaths:
-                time.sleep(2)
                 shlib.shell_notify(list(notifypaths), noassoc=not updated_any)
                 logger.msg('Shell notified')
             errmsg = errorstream.getvalue()