Changeset 55573f29c240…
Parent e2f1eafc6193…
by
Changes to one file · Browse files at 55573f29c240 Showing diff from parent e2f1eafc6193 Diff from another changeset...
@@ -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;
|
Loading...