Mercurial > hg
comparison mercurial/util.py @ 7201:b1aea76f7001
hgwebdir: show nested repositories (issue1336)
author | Benoit Allard <benoit@aeteurope.nl> |
---|---|
date | Wed, 22 Oct 2008 18:23:32 +0200 |
parents | cae820101762 |
children | 5d14b06b1cc1 |
comparison
equal
deleted
inserted
replaced
7200:ca5ac40949dc | 7201:b1aea76f7001 |
---|---|
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: |