Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9.3, 1.0, and 1.0.1

stable shellext: enable overlays for repos on roots of network shares and drives

just make sure we don't issue a dreaded call to ::PathIsDirectory with
a UNC share base path argument

Changeset 42fdde615bc7

Parent 40201728edaf

by Adrian Buehlmann

Changes to one file · Browse files at 42fdde615bc7 Showing diff from parent 40201728edaf Diff from another changeset...

 
49
50
51
52
53
 
54
55
56
57
58
 
 
 
59
60
61
 
49
50
51
 
 
52
53
 
54
55
56
57
58
59
60
61
62
@@ -49,13 +49,14 @@
    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();