Commits

TK Soh  committed 391833e

skip hg root directories on icon overlaying

  • Participants
  • Parent commits 85ef745

Comments (0)

Files changed (1)

File tortoise/iconoverlay.py

             IconOverlayExtension.last_tick = tc
             return NOT_IN_TREE
 
+        # skip root direcory to improve speed
+        if repo.root == path:
+            print "%s: skip repo root" % dir
+            IconOverlayExtension.last_status = NOT_IN_TREE
+            IconOverlayExtension.last_path = path
+            IconOverlayExtension.last_tick = tc
+            return NOT_IN_TREE
+            
         # get file status
         files, matchfn, anypats = cmdutil.matchpats(repo, [filename])
         modified, added, removed, deleted, unknown, ignored, clean = [