Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.py @ 7525:6a49fa7674c1
hgweb: mq repos should be in non-recursive collections, too
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Fri, 19 Dec 2008 18:24:49 +0100 |
parents | e60aaae83323 |
children | 9e186bda013d 71be8688f2db |
line wrap: on
line diff
--- a/mercurial/util.py Fri Dec 19 08:41:46 2008 +0100 +++ b/mercurial/util.py Fri Dec 19 18:24:49 2008 +0100 @@ -1902,13 +1902,12 @@ for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler): if '.hg' in dirs: yield root # found a repository + qroot = os.path.join(root, '.hg', 'patches') + if os.path.isdir(os.path.join(qroot, '.hg')): + yield qroot # we have a patch queue repo here if recurse: # avoid recursing inside the .hg directory - # the mq repository is added in any case dirs.remove('.hg') - qroot = os.path.join(root, '.hg', 'patches') - if os.path.isdir(os.path.join(qroot, '.hg')): - yield qroot # we have a patch queue repo here else: dirs[:] = [] # don't descend further elif followsym: