Show More
@@ -324,10 +324,10 def walkrepos(path, followsym=False, see | |||||
324 | def errhandler(err): |
|
324 | def errhandler(err): | |
325 | if err.filename == path: |
|
325 | if err.filename == path: | |
326 | raise err |
|
326 | raise err | |
327 |
|
|
327 | samestat = getattr(os.path, 'samestat', None) | |
|
328 | if followsym and samestat is not None: | |||
328 | def adddir(dirlst, dirname): |
|
329 | def adddir(dirlst, dirname): | |
329 | match = False |
|
330 | match = False | |
330 | samestat = os.path.samestat |
|
|||
331 | dirstat = os.stat(dirname) |
|
331 | dirstat = os.stat(dirname) | |
332 | for lstdirstat in dirlst: |
|
332 | for lstdirstat in dirlst: | |
333 | if samestat(dirstat, lstdirstat): |
|
333 | if samestat(dirstat, lstdirstat): |
General Comments 0
You need to be logged in to leave comments.
Login now