# HG changeset patch # User Dirkjan Ochtman # Date 2009-11-06 21:54:51 # Node ID 092bcf431562fc2775cc6dc1142c6fa15d970a22 # Parent 0e080d519d1b546ead04d7efd9e2dbd589d6f878 util: sort paths in walkrepos() (fixes test failures in test-hgwebdir) diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -1116,6 +1116,7 @@ def walkrepos(path, followsym=False, see 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')