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: treat dirs with no entries as untracked (issue 1)

Changeset 26cc37723f8a

Parent 97388276e8cf

by Adrian Buehlmann

Changes to one file · Browse files at 26cc37723f8a Showing diff from parent 97388276e8cf Diff from another changeset...

 
276
277
278
 
279
280
281
 
286
287
288
 
 
289
290
291
 
312
313
314
 
 
315
316
317
 
276
277
278
279
280
281
282
 
287
288
289
290
291
292
293
294
 
315
316
317
318
319
320
321
322
@@ -276,6 +276,7 @@
    bool added = false;   bool modified = false; + bool empty = true;     size_t rootlen = strlen(hgroot);   size_t len = strlen(relpathloc); @@ -286,6 +287,8 @@
    if (0 != strncmp(relpathloc, e.name.c_str(), len))   continue; + + empty = false;     switch (e.state)   { @@ -312,6 +315,8 @@
  *outStatus = 'M';   else if (added)   *outStatus = 'A'; + else if (empty) + *outStatus = '?';   else   *outStatus = 'C';