diff -r 825631b6d256 -r 9e186bda013d mercurial/util.py --- a/mercurial/util.py Fri Dec 19 08:42:41 2008 +0100 +++ b/mercurial/util.py Fri Dec 19 18:49:02 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: