Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph

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.

Changeset 110b74bfa2a2

Parent 570ddfc1cb23

by David Golub

Changes to one file · Browse files at 110b74bfa2a2 Showing diff from parent 570ddfc1cb23 Diff from another changeset...

 
262
263
264
 
 
265
266
267
 
279
280
281
282
283
284
285
 
262
263
264
265
266
267
268
269
 
281
282
283
 
284
285
286
@@ -262,6 +262,8 @@
  _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: @@ -279,7 +281,6 @@
  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()