changeset 9732:092bcf431562

util: sort paths in walkrepos() (fixes test failures in test-hgwebdir)
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 06 Nov 2009 22:54:51 +0100
parents 0e080d519d1b
children f16ec85f125c
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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')