Commits

Adrian Buehlmann committed a5c7c15

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.

Comments (0)

Files changed (1)

tortoisehg/util/shlib.py

             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