Changeset a751ba19dbae…
Parent cf7e32fb7f2b…
by
Changes to one file · Browse files at a751ba19dbae Showing diff from parent cf7e32fb7f2b Diff from another changeset...
@@ -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);
|
Loading...