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

shlib.shell_notify: move SHCNE_ASSOCCHANGE out of for loop in

SHCNE_ASSOCCHANGE is global for the entire shell and thus independent
on the path, so there is no reason to do it again for every dir in the
for loop.

Changeset a5c7c153c16e

Parent a249bb5fa320

by Adrian Buehlmann

Changes to one file · Browse files at a5c7c153c16e Showing diff from parent a249bb5fa320 Diff from another changeset...

 
57
58
59
60
61
62
 
 
 
63
64
65
 
57
58
59
 
 
 
60
61
62
63
64
65
@@ -57,9 +57,9 @@
  shell.SHChangeNotify(shellcon.SHCNE_UPDATEITEM,   shellcon.SHCNF_IDLIST | shellcon.SHCNF_FLUSH,   pidl, None) - shell.SHChangeNotify(shellcon.SHCNE_ASSOCCHANGED, - shellcon.SHCNF_FLUSH, - None, None) + shell.SHChangeNotify(shellcon.SHCNE_ASSOCCHANGED, + shellcon.SHCNF_FLUSH, + None, None)     def update_thgstatus(ui, root, wait=False):   '''Rewrite the file .hg/thgstatus