Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

IconOverlay.cpp: skip empty and .hg relpaths unconditionally

Changeset f73593b0512f

Parent dbf731e75c2f

by Adrian Buehlmann

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

 
72
73
74
 
 
 
 
 
 
75
76
77
78
79
80
81
82
83
84
85
86
87
 
72
73
74
75
76
77
78
79
80
81
82
83
84
 
 
 
 
 
 
85
86
87
@@ -72,16 +72,16 @@
    std::string relpath = relpathptr;   + if (relpath.size() == 0) + return S_FALSE; // don't show icon on repo root dir + + if (relpath.compare(0, 3, ".hg") == 0) + return S_FALSE; // don't descend into .hg dir +   char status = 0;     if (PathIsDirectory(path.c_str()))   { - if (relpath.size() == 0) - return S_FALSE; // don't show icon on repo root dir - - if (relpath.compare(0, 3, ".hg") == 0) - return S_FALSE; // don't descend into .hg dir -   if (!HgQueryDirstateDirectory(hgroot, path, relpath, status))   return S_FALSE;   }