Fixed: Skip .hg directories

This commit is contained in:
kervala 2015-03-02 13:07:33 +01:00
parent 619f33fffc
commit d820233d21

View file

@ -898,10 +898,10 @@ void CFileContainer::getPathContent (const string &path, bool recurse, bool want
if (isdirectory(de)) if (isdirectory(de))
{ {
// skip CVS and .svn directory // skip CVS, .svn and .hg directory
if ((!showEverything) && (fn == "CVS" || fn == ".svn")) if ((!showEverything) && (fn == "CVS" || fn == ".svn" || fn == ".hg"))
{ {
NL_DISPLAY_PATH("PATH: CPath::getPathContent(%s, %d, %d, %d): skip CVS and .svn directory", path.c_str(), recurse, wantDir, wantFile); NL_DISPLAY_PATH("PATH: CPath::getPathContent(%s, %d, %d, %d): skip CVS, .svn and .hg directory", path.c_str(), recurse, wantDir, wantFile);
continue; continue;
} }