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

dirstate.cpp: report directories with missing or removed files as modified

Changeset 7bd48dc0d3ca

Parent 6b3660b35e42

by Adrian Buehlmann

Changes to one file · Browse files at 7bd48dc0d3ca Showing diff from parent 6b3660b35e42 Diff from another changeset...

 
224
225
226
 
 
 
227
228
229
230
231
232
233
234
 
235
236
237
 
224
225
226
227
228
229
230
231
232
 
 
 
 
 
233
234
235
236
@@ -224,14 +224,13 @@
  const std::string hrs = hgroot + '\\';   for (FilesT::iterator i = files_.begin(); i != files_.end(); ++i)   { + if (i->state == 'r') + return 'M'; // file was removed, report dir as modified +   std::string p = hrs + path(i->name);     if (0 != lstat(p.c_str(), stat)) - { - TDEBUG_TRACE("Directory(" << path() - << ")::status_imp: lstat(" << p << ") failed"); - continue; - } + return 'M'; // file is missing, report dir as modified     char s = i->status(stat);