##// END OF EJS Templates
Simplify utils.walkrepos().
Walter Doerwald -
r6140:47e6d5d5 default
parent child Browse files
Show More
@@ -1704,11 +1704,9 b' def walkrepos(path):'
1704 raise err
1704 raise err
1705
1705
1706 for root, dirs, files in os.walk(path, onerror=errhandler):
1706 for root, dirs, files in os.walk(path, onerror=errhandler):
1707 for d in dirs:
1707 if '.hg' in dirs:
1708 if d == '.hg':
1708 dirs[:] = [] # don't descend further
1709 yield root
1709 yield root # found a repository
1710 dirs[:] = []
1711 break
1712
1710
1713 _rcpath = None
1711 _rcpath = None
1714
1712
General Comments 0
You need to be logged in to leave comments. Login now