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: use reference types on params for mapdirstate

Changeset 1746e393c2fc

Parent bba6a4b72614

by Adrian Buehlmann

Changes to one file · Browse files at 1746e393c2fc Showing diff from parent bba6a4b72614 Diff from another changeset...

 
202
203
204
205
 
206
207
 
208
209
210
211
 
 
212
213
 
214
215
216
 
289
290
291
292
 
293
294
295
 
337
338
339
340
 
341
342
343
 
202
203
204
 
205
206
 
207
208
209
 
 
210
211
212
 
213
214
215
216
 
289
290
291
 
292
293
294
295
 
337
338
339
 
340
341
342
343
@@ -202,15 +202,15 @@
 }     -char mapdirstate(const direntry* entry, const struct _stat* stat) +char mapdirstate(const direntry& e, const struct _stat& stat)  { - switch (entry->state) + switch (e.state)   {   case 'n': - if (entry->mtime == (unsigned)stat->st_mtime - && entry->size == (unsigned)stat->st_size + if (e.mtime == (unsigned)stat.st_mtime + && e.size == (unsigned)stat.st_size  #ifndef WIN32 - && entry->mode == stat->st_mode + && e.mode == stat.st_mode  #endif   )   return 'C'; @@ -289,7 +289,7 @@
  temp += "/";   temp += e.name;   if (0 == lstat(temp.c_str(), &stat)) - modified = (mapdirstate(&e, &stat) == 'M'); + modified = (mapdirstate(e, stat) == 'M');   }   break;   case 'm': @@ -337,7 +337,7 @@
  if (0 == strncmp(relpathloc, pd->entries[ix].name.c_str(), MAX_PATH))   {   TDEBUG_TRACE("HgQueryDirstateFile: found relpathloc"); - outStatus = mapdirstate(&pd->entries[ix], &stat); + outStatus = mapdirstate(pd->entries[ix], stat);   TDEBUG_TRACE("HgQueryDirstateFile: outStatus = " << outStatus);   return outStatus != '?';   }