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

dirstate.cpp: show icons for files starting with '.hg' (issue 2)

Changeset a751ba19dbae

Parent cf7e32fb7f2b

by Adrian Buehlmann

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

 
355
356
357
358
 
 
 
359
360
361
 
376
377
378
379
 
380
381
382
 
355
356
357
 
358
359
360
361
362
363
 
378
379
380
 
381
382
383
384
@@ -355,7 +355,9 @@
  if (relpath.empty())   return 0; // don't show icon on repo root dir   - if (relpath.compare(0, 3, ".hg") == 0) + bool isdir = PathIsDirectory(path.c_str()); + + if (isdir && relpath.size() >= 3 && relpath.compare(0, 3, ".hg") == 0)   return 0; // don't descend into .hg dir     const dirstate* pds = dirstatecache::get(hgroot); @@ -376,7 +378,7 @@
    int res = 0;   - if (PathIsDirectory(path.c_str())) + if (isdir)   res = HgQueryDirstateDirectory(hgroot, *pds, relpath, outStatus);   else   res = HgQueryDirstateFile(*pds, relpath, stat, outStatus);