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: move backslash conversion up

Changeset 6c34798f128d

Parent 327235605789

by Adrian Buehlmann

Changes to one file · Browse files at 6c34798f128d Showing diff from parent 327235605789 Diff from another changeset...

 
202
203
204
 
 
 
 
 
 
205
206
207
 
216
217
218
219
220
221
222
223
224
225
226
227
 
202
203
204
205
206
207
208
209
210
211
212
213
 
222
223
224
 
 
 
 
 
 
225
226
227
@@ -202,6 +202,12 @@
  if (relpath.empty())   return 0; // don't show icon on repo root dir   + for (size_t i = 0; i < relpath.size(); ++i) + { + if (relpath[i] == '\\') + relpath[i] = '/'; + } +   if (relpath == ".hg"   || (relpath.size() > 4 && relpath.compare(0, 4, ".hg/") == 0))   return 0; // don't descend into .hg dir @@ -216,12 +222,6 @@
  if (filterStatus == 'A' && pds->num_added() == 0)   return 0;   - for (size_t i = 0; i < relpath.size(); ++i) - { - if (relpath[i] == '\\') - relpath[i] = '/'; - } -   if (PathIsDirectory(path.c_str()))   {   Directory* dir = pds->root().getdir(relpath);