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: delete unused HgQueryDirstate

Changeset 17f59a6a892f

Parent dbf1b0d5b272

by Adrian Buehlmann

Changes to one file · Browse files at 17f59a6a892f Showing diff from parent dbf1b0d5b272 Diff from another changeset...

 
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
 
245
246
247
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
249
250
@@ -245,33 +245,6 @@
 }     -int HgQueryDirstate( - const std::string& hgroot, const std::string& abspath, std::string& relpath, - const dirstate*& ppd, struct _stat& rstat) -{ - if (0 != lstat(abspath.c_str(), rstat)) - { - TDEBUG_TRACE("HgQueryDirstate: lstat(" << abspath << ") fails"); - return 0; - } - - ppd = dirstatecache::get(hgroot); - if (!ppd) - { - TDEBUG_TRACE("HgQueryDirstate: dirstatecache::get(" << hgroot << ") returns 0"); - return 0; - } - - for (size_t i = 0; i < relpath.size(); ++i) - { - if (relpath[i] == '\\') - relpath[i] = '/'; - } - - return 1; -} - -  int HgQueryDirstateDirectory(   const std::string& hgroot, const std::string& abspath,   std::string& relpath, char& outStatus)