Commits

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

Comments (0)

Files changed (1)

File TortoiseHgOverlayServer.py

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