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

shellext: trigger rpcserver on unset dirstate

Changeset 55573f29c240

Parent e2f1eafc6193

by Adrian Buehlmann

Changes to one file · Browse files at 55573f29c240 Showing diff from parent e2f1eafc6193 Diff from another changeset...

 
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
 
48
49
50
 
142
143
144
145
 
146
147
148
 
20
21
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
24
25
26
 
118
119
120
 
121
122
123
124
@@ -20,31 +20,7 @@
 #include "Dirstatecache.h"  #include "dirstate.h"  #include "Winstat64.h" -#include "TortoiseUtils.h" -#include "StringUtils.h" - - -void call_thgstatus(const std::string& cwd) -{ - std::string dir = GetTHgProgRoot(); - if (dir.empty()) - { - TDEBUG_TRACE("call_thgstatus: THG root is empty"); - return; - } - std::string hgcmd = dir + "\\hgtk.exe"; - - WIN32_FIND_DATAA data; - HANDLE hfind = FindFirstFileA(hgcmd.c_str(), &data); - if (hfind == INVALID_HANDLE_VALUE) - hgcmd = dir + "\\hgtk.cmd"; - else - FindClose(hfind); - - hgcmd = Quote(hgcmd) + " thgstatus --notify ."; - - LaunchCommand(hgcmd, cwd); -} +#include "Thgstatus.h"      std::list<Dirstatecache::E>& Dirstatecache::cache() @@ -142,7 +118,7 @@
  TDEBUG_TRACE("Dirstatecache::get: ignored (unset entries)");   if (!iter->unset)   { - call_thgstatus(cwd); + Thgstatus::update(cwd);   iter->unset = true;   }   return iter->dstate;