Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1.2 and tip

stable shellext: remove trailing white-spaces from QueryDirstate.cpp.

Changeset b272ef2cd36e

Parent 4541551aad5c

by Toshi MARUYAMA

Changes to one file · Browse files at b272ef2cd36e Showing diff from parent 4541551aad5c Diff from another changeset...

 
78
79
80
81
 
82
83
84
85
86
 
87
88
89
 
91
92
93
94
 
95
96
97
 
141
142
143
144
 
145
146
147
 
173
174
175
176
 
177
178
179
 
187
188
189
190
 
191
192
193
 
198
199
200
201
 
202
203
204
205
 
206
207
208
 
216
217
218
219
 
220
221
222
 
283
284
285
286
 
287
288
289
 
313
314
315
316
 
317
318
319
 
338
339
340
341
 
342
343
344
 
78
79
80
 
81
82
83
84
85
 
86
87
88
89
 
91
92
93
 
94
95
96
97
 
141
142
143
 
144
145
146
147
 
173
174
175
 
176
177
178
179
 
187
188
189
 
190
191
192
193
 
198
199
200
 
201
202
203
204
 
205
206
207
208
 
216
217
218
 
219
220
221
222
 
283
284
285
 
286
287
288
289
 
313
314
315
 
316
317
318
319
 
338
339
340
 
341
342
343
344
@@ -78,12 +78,12 @@
   int findHgRoot(char cls, QueryState& cur, QueryState& last, bool outdated)  { - std::string dp = "["; dp += cls; dp += "] findHgRoot"; + std::string dp = "["; dp += cls; dp += "] findHgRoot";     {   std::string p = cur.path;   p.push_back('\\'); - if (p.find("\\.hg\\") != std::string::npos) + if (p.find("\\.hg\\") != std::string::npos)   {   // ignore files and dirs named '.hg'   last = cur; @@ -91,7 +91,7 @@
  }   }   - if (!outdated && !last.hgroot.empty() + if (!outdated && !last.hgroot.empty()   && cur.path.size() >= last.hgroot.size()   && StartsWith(cur.path, last.hgroot + "\\"))   { @@ -141,7 +141,7 @@
  goto exit;   }   - if (has_hg) + if (has_hg)   {   cur.hgroot = p;   TDEBUG_TRACE( @@ -173,7 +173,7 @@
     int get_relpath( - const std::string& hgroot, + const std::string& hgroot,   const std::string& path,   std::string& res  ) @@ -187,7 +187,7 @@
    if (path[offset] == '\\')   offset++; - +   const char* relpathptr = path.c_str() + offset;     res = relpathptr; @@ -198,11 +198,11 @@
 int HgQueryDirstate(   const char cls,   const std::string& path, - const char& filterStatus, + const char& filterStatus,   char& outStatus  )  { - std::string dp = "["; dp += cls; dp += "] HgQueryDirstate: "; + std::string dp = "["; dp += cls; dp += "] HgQueryDirstate: ";     static QueryState last;   @@ -216,7 +216,7 @@
    const bool outdated = cur.tickcount - last.tickcount > 2000;   - if (!outdated && last.path == path) + if (!outdated && last.path == path)   {   outStatus = last.status;   if (outStatus == 'P') @@ -283,7 +283,7 @@
  }     Winstat stat; - if (0 != stat.lstat(path.c_str())) + if (0 != stat.lstat(path.c_str()))   {   TDEBUG_TRACE(dp << "lstat(" << path << ") failed");   last = cur; @@ -313,7 +313,7 @@
  }     const Direntry* const e = pds->root().get(relpath); - if (!e) + if (!e)   {   last = cur;   return 0; @@ -338,7 +338,7 @@
    if (basedir_status != 'M')   update = true; - } + }   }   else if (outStatus == 'P')   {