Commits

TK Soh  committed 85ef745

enable overlay icons on folders, though it slows things down

  • Participants
  • Parent commits 94aa561

Comments (0)

Files changed (1)

File tortoise/iconoverlay.py

             IconOverlayExtension.counter += 1
         print "counter = %d" % IconOverlayExtension.counter
         
-        if os.path.isdir(path):
+        if 0 and os.path.isdir(path):
             print "%s: skip directory" % path
             return NOT_IN_TREE      # ignore directories (for efficiency)
 
 
         # open repo
         u = ui.ui()
-        dir, filename = os.path.split(path)
+        if os.path.isdir(path):
+            dir, filename = path, ''
+        else:
+            dir, filename = os.path.split(path)
+
         os.chdir(dir)
         try:
             repo = hg.repository(u, path='')