equal
deleted
inserted
replaced
1850 if (seen_dirs is None) and followsym: |
1850 if (seen_dirs is None) and followsym: |
1851 seen_dirs = [] |
1851 seen_dirs = [] |
1852 _add_dir_if_not_there(seen_dirs, path) |
1852 _add_dir_if_not_there(seen_dirs, path) |
1853 for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler): |
1853 for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler): |
1854 if '.hg' in dirs: |
1854 if '.hg' in dirs: |
1855 dirs[:] = [] # don't descend further |
1855 dirs.remove('.hg') # don't recurse inside the .hg directory |
1856 yield root # found a repository |
1856 yield root # found a repository |
1857 qroot = os.path.join(root, '.hg', 'patches') |
1857 qroot = os.path.join(root, '.hg', 'patches') |
1858 if os.path.isdir(os.path.join(qroot, '.hg')): |
1858 if os.path.isdir(os.path.join(qroot, '.hg')): |
1859 yield qroot # we have a patch queue repo here |
1859 yield qroot # we have a patch queue repo here |
1860 elif followsym: |
1860 elif followsym: |