equal
deleted
inserted
replaced
1114 |
1114 |
1115 if (seen_dirs is None) and followsym: |
1115 if (seen_dirs is None) and followsym: |
1116 seen_dirs = [] |
1116 seen_dirs = [] |
1117 _add_dir_if_not_there(seen_dirs, path) |
1117 _add_dir_if_not_there(seen_dirs, path) |
1118 for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler): |
1118 for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler): |
|
1119 dirs.sort() |
1119 if '.hg' in dirs: |
1120 if '.hg' in dirs: |
1120 yield root # found a repository |
1121 yield root # found a repository |
1121 qroot = os.path.join(root, '.hg', 'patches') |
1122 qroot = os.path.join(root, '.hg', 'patches') |
1122 if os.path.isdir(os.path.join(qroot, '.hg')): |
1123 if os.path.isdir(os.path.join(qroot, '.hg')): |
1123 yield qroot # we have a patch queue repo here |
1124 yield qroot # we have a patch queue repo here |