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

fogcreek overlay: display icons on directories that only contain kbfiles

Changeset 6d0f3037e5ee

Parent 319ba8067626

by David Golub

Changes to one file · Browse files at 6d0f3037e5ee Showing diff from parent 319ba8067626 Diff from another changeset...

 
301
302
303
304
305
 
 
 
 
 
 
 
306
307
308
 
301
302
303
 
 
304
305
306
307
308
309
310
311
312
313
@@ -301,8 +301,13 @@
  {   if (!relpath.empty() && !pds->root().getdir(relpath))   { - last = cur; - return 0; // unknown dir -> no icon + // attempt to get status from kbfiles + pds = Dirstatecache::get(cur.hgroot, cur.basedir, unset, true); + if (!pds || !pds->root().getdir(relpath)) + { + last = cur; + return 0; // unknown dir -> no icon + }   }     outStatus = (pdirsta ? pdirsta->status(relpath) : '?');