Show More
@@ -357,12 +357,8 b' def walkrepos(path, followsym=False, see' | |||||
357 | samestat = getattr(os.path, 'samestat', None) |
|
357 | samestat = getattr(os.path, 'samestat', None) | |
358 | if followsym and samestat is not None: |
|
358 | if followsym and samestat is not None: | |
359 | def adddir(dirlst, dirname): |
|
359 | def adddir(dirlst, dirname): | |
360 | match = False |
|
|||
361 | dirstat = os.stat(dirname) |
|
360 | dirstat = os.stat(dirname) | |
362 |
for lstdirstat in dirlst |
|
361 | match = any(samestat(dirstat, lstdirstat) for lstdirstat in dirlst) | |
363 | if samestat(dirstat, lstdirstat): |
|
|||
364 | match = True |
|
|||
365 | break |
|
|||
366 | if not match: |
|
362 | if not match: | |
367 | dirlst.append(dirstat) |
|
363 | dirlst.append(dirstat) | |
368 | return not match |
|
364 | return not match |
General Comments 0
You need to be logged in to leave comments.
Login now