Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

shellext/overlay: use GetHgRepoRoot() to find repo root

Somehow HgFindRoot() has problem find root in some repos.

Changeset ba6fc94498bd

Parent a2f929b610bf

by TK Soh

Changes to one file · Browse files at ba6fc94498bd Showing diff from parent a2f929b610bf Diff from another changeset...

 
66
67
68
69
 
70
71
 
72
73
 
74
75
76
 
66
67
68
 
69
70
 
71
72
 
73
74
75
76
@@ -66,11 +66,11 @@
  char path[MAX_PATH] = "";   strncat(path, mbstr.c_str(), MAX_PATH);   - std::string hgroot; + std::string hgroot = GetHgRepoRoot(path);   - if (!HgFindRoot(path, &hgroot)) + if (hgroot.empty())   { - TDEBUG_TRACE("IsMemberOf: HgFindRoot returns false"); + TDEBUG_TRACE("IsMemberOf: Not a Hg repo (hgroot is empty)");   return S_FALSE;   }