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: allow repositories on UNC shares

Refs #826

see also 9e6c172dbfa8

Changeset 816bc1709037

Parent 497dff516c0e

by Adrian Buehlmann

Changes to one file · Browse files at 816bc1709037 Showing diff from parent 497dff516c0e Diff from another changeset...

 
266
267
268
269
270
271
272
273
274
275
 
 
 
276
277
278
 
266
267
268
 
 
 
 
 
 
 
269
270
271
272
273
274
@@ -266,13 +266,9 @@
 {   TDEBUG_TRACE("GetHgRepoRoot('" << path << "')");   - if (::PathIsUNCServerShare(path.c_str())) - { - TDEBUG_TRACE("GetHgRepoRoot: path is UNC share '" << path << "'"); - return ""; - } - - std::string p = IsDirectory(path)? path : DirName(path); + std::string p = + (::PathIsUNCServerShare(path.c_str()) || IsDirectory(path)) + ? path : DirName(path);   for (;;)   {   std::string tdir = p + "\\.hg";