# HG changeset patch # User Dirkjan Ochtman # Date 1257544491 -3600 # Node ID 092bcf431562fc2775cc6dc1142c6fa15d970a22 # Parent 0e080d519d1b546ead04d7efd9e2dbd589d6f878 util: sort paths in walkrepos() (fixes test failures in test-hgwebdir) diff -r 0e080d519d1b -r 092bcf431562 mercurial/util.py --- a/mercurial/util.py Fri Nov 06 22:46:46 2009 +0100 +++ b/mercurial/util.py Fri Nov 06 22:54:51 2009 +0100 @@ -1116,6 +1116,7 @@ seen_dirs = [] _add_dir_if_not_there(seen_dirs, path) for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler): + dirs.sort() if '.hg' in dirs: yield root # found a repository qroot = os.path.join(root, '.hg', 'patches')