Show More
@@ -319,7 +319,7 b' def walkrepos(path, followsym=False, see' | |||
|
319 | 319 | if err.filename == path: |
|
320 | 320 | raise err |
|
321 | 321 | if followsym and hasattr(os.path, 'samestat'): |
|
322 |
def |
|
|
322 | def adddir(dirlst, dirname): | |
|
323 | 323 | match = False |
|
324 | 324 | samestat = os.path.samestat |
|
325 | 325 | dirstat = os.stat(dirname) |
@@ -335,7 +335,7 b' def walkrepos(path, followsym=False, see' | |||
|
335 | 335 | |
|
336 | 336 | if (seen_dirs is None) and followsym: |
|
337 | 337 | seen_dirs = [] |
|
338 |
|
|
|
338 | adddir(seen_dirs, path) | |
|
339 | 339 | for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler): |
|
340 | 340 | dirs.sort() |
|
341 | 341 | if '.hg' in dirs: |
@@ -352,7 +352,7 b' def walkrepos(path, followsym=False, see' | |||
|
352 | 352 | newdirs = [] |
|
353 | 353 | for d in dirs: |
|
354 | 354 | fname = os.path.join(root, d) |
|
355 |
if |
|
|
355 | if adddir(seen_dirs, fname): | |
|
356 | 356 | if os.path.islink(fname): |
|
357 | 357 | for hgname in walkrepos(fname, True, seen_dirs): |
|
358 | 358 | yield hgname |
General Comments 0
You need to be logged in to leave comments.
Login now