Changeset efb311d3e8a8…
Parent 34451c8d6bd9…
by
Changes to one file · Browse files at efb311d3e8a8 Showing diff from parent 34451c8d6bd9 Diff from another changeset...
@@ -86,16 +86,30 @@ int nPos;
if ((nPos = strPath.Find(_T("\\.kbf\\"))) != -1)
{
- strPath.Truncate(nPos);
- strPath += _T("\\.hg\\kilnbfiles\\dirstate");
+ CString strPath2 = strPath;
+ strPath2.Truncate(nPos);
+ strPath2 += _T("\\.hg\\kilnbfiles\\dirstate");
CWinstat stat;
- if (stat.lstat(strPath, true) == 0)
+ if (stat.lstat(strPath2, true) == 0)
{
// ignore files and dirs named '.kbf' when kbfiles is enabled
qsLast = qsCur;
return false;
}
}
+ if ((nPos = strPath.Find(_T("\\.hglf\\"))) != -1)
+ {
+ CString strPath2 = strPath;
+ strPath2.Truncate(nPos);
+ strPath2 += _T("\\.hg\\largefiles\\dirstate");
+ CWinstat stat;
+ if (stat.lstat(strPath2, true) == 0)
+ {
+ // ignore files and dirs named '.hglf' when largefiles is enabled
+ qsLast = qsCur;
+ return false;
+ }
+ }
}
if (!bOutdated && !qsLast.strHgRoot.IsEmpty()
|
Loading...