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

shellext: check DirectoryStatus if modified file encountered

update thgstatus if needed

Changeset 814ecd648b50

Parent dac9f3a54301

by Adrian Buehlmann

Changes to one file · Browse files at 814ecd648b50 Showing diff from parent dac9f3a54301 Diff from another changeset...

 
23
24
25
 
26
27
28
 
194
195
196
 
 
 
 
 
 
 
 
 
 
 
 
 
197
198
199
 
23
24
25
26
27
28
29
 
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
@@ -23,6 +23,7 @@
 #include "Dirstatecache.h"  #include "Winstat.h"  #include "TortoiseUtils.h" +#include "Thgstatus.h"    #include <shlwapi.h>   @@ -194,6 +195,19 @@
  }     outStatus = e->status(stat); + + if (outStatus == 'M') + { + DirectoryStatus* dirsst = DirectoryStatus::get(cur.hgroot); + if (dirsst) + { + char basedir_status = dirsst->status(cur.basedir); + if (basedir_status != 'M') + { + Thgstatus::update(cur.hgroot); + } + } + }   }     cur.status = outStatus;