Show More
@@ -219,6 +219,9 b' class abstractvfs(object):' | |||
|
219 | 219 | def mkdir(self, path=None): |
|
220 | 220 | return os.mkdir(self.join(path)) |
|
221 | 221 | |
|
222 | def readdir(self, path=None, stat=None, skip=None): | |
|
223 | return osutil.listdir(self.join(path), stat, skip) | |
|
224 | ||
|
222 | 225 | def stat(self, path=None): |
|
223 | 226 | return os.stat(self.join(path)) |
|
224 | 227 |
@@ -6,7 +6,7 b'' | |||
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | 8 | from i18n import _ |
|
9 |
import |
|
|
9 | import scmutil, util, parsers | |
|
10 | 10 | import os, stat, errno |
|
11 | 11 | |
|
12 | 12 | _sha = util.sha1 |
@@ -311,9 +311,10 b' class basicstore(object):' | |||
|
311 | 311 | l = [] |
|
312 | 312 | if self.rawvfs.isdir(path): |
|
313 | 313 | visit = [path] |
|
314 | readdir = self.rawvfs.readdir | |
|
314 | 315 | while visit: |
|
315 | 316 | p = visit.pop() |
|
316 |
for f, kind, st in |
|
|
317 | for f, kind, st in readdir(p, stat=True): | |
|
317 | 318 | fp = p + '/' + f |
|
318 | 319 | if kind == stat.S_IFREG and f[-2:] in ('.d', '.i'): |
|
319 | 320 | n = util.pconvert(fp[striplen:]) |
General Comments 0
You need to be logged in to leave comments.
Login now