Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 7495:90487273f59c
Merge with crew-stable
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Wed, 10 Dec 2008 00:29:10 +0100 |
parents | 5185a24ce04e 85dc88630beb |
children | 9a962209dc28 |
comparison
equal
deleted
inserted
replaced
7493:518afef5e350 | 7495:90487273f59c |
---|---|
1899 if (seen_dirs is None) and followsym: | 1899 if (seen_dirs is None) and followsym: |
1900 seen_dirs = [] | 1900 seen_dirs = [] |
1901 _add_dir_if_not_there(seen_dirs, path) | 1901 _add_dir_if_not_there(seen_dirs, path) |
1902 for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler): | 1902 for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler): |
1903 if '.hg' in dirs: | 1903 if '.hg' in dirs: |
1904 dirs.remove('.hg') # don't recurse inside the .hg directory | 1904 dirs[:] = [] # don't descend further |
1905 yield root # found a repository | 1905 yield root # found a repository |
1906 qroot = os.path.join(root, '.hg', 'patches') | 1906 qroot = os.path.join(root, '.hg', 'patches') |
1907 if os.path.isdir(os.path.join(qroot, '.hg')): | 1907 if os.path.isdir(os.path.join(qroot, '.hg')): |
1908 yield qroot # we have a patch queue repo here | 1908 yield qroot # we have a patch queue repo here |
1909 elif followsym: | 1909 elif followsym: |