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