by
Changes to one file · Browse files at ded57e02be29 Showing diff from parent fa97bb9dc060 42fdde615bc7 Diff from another changeset...
@@ -45,15 +45,18 @@
bool hasHgDir(char cls, const std::string& path, unsigned& ticks)
{
+ ticks = 0;
+
bool res = false;
- if (path.empty() || path == "\\" || ::PathIsRoot(path.c_str()))
- {
+ if (path.empty() || path == "\\")
return res;
- }
const std::string p = path + "\\.hg";
+ if (::PathIsUNCServerShare(p.c_str()))
+ return res;
+
unsigned tc0 = ::GetTickCount();
res = ::PathIsDirectory(p.c_str()) != 0;
unsigned tc1 = ::GetTickCount();
|
Loading...