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

shellext: drop cached dirstate on 'Update Icons'

Changeset f6812c034a98

Parent 138a6894a0b2

by Adrian Buehlmann

Changes to one file · Browse files at f6812c034a98 Showing diff from parent 138a6894a0b2 Diff from another changeset...

 
2
3
4
 
5
6
7
 
419
420
421
 
 
 
 
 
 
 
422
423
 
2
3
4
5
6
7
8
 
420
421
422
423
424
425
426
427
428
429
430
431
@@ -2,6 +2,7 @@
 #include "ShellExt.h"  #include "TortoiseUtils.h"  #include "StringUtils.h" +#include "Dirstatecache.h"    typedef struct {   std::string name; @@ -419,5 +420,12 @@
  return;   }   + if (cmd == "thgstatus") + { + std::string hgroot = GetHgRepoRoot(cwd); + if (!hgroot.empty()) + Dirstatecache::invalidate(hgroot); + } +   LaunchCommand(hgcmd, cwd);  }