# HG changeset patch # User Patrick Mezard # Date 1228864572 -3600 # Node ID 85dc88630beb98ea5bc6df7f0aecb1e4273e5e0a # Parent 6644c111f9e9baee1cd98493428914e2e71a282e util: disable walkrepo() recursive behaviour Revert b1aea76f700 and 268c582bd42a for performances reasons. Traversing checkout working directories may be too expensive. diff -r 6644c111f9e9 -r 85dc88630beb mercurial/util.py --- a/mercurial/util.py Sat Dec 06 20:10:31 2008 +0100 +++ b/mercurial/util.py Wed Dec 10 00:16:12 2008 +0100 @@ -1901,7 +1901,7 @@ _add_dir_if_not_there(seen_dirs, path) for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler): if '.hg' in dirs: - dirs.remove('.hg') # don't recurse inside the .hg directory + dirs[:] = [] # don't descend further yield root # found a repository qroot = os.path.join(root, '.hg', 'patches') if os.path.isdir(os.path.join(qroot, '.hg')): diff -r 6644c111f9e9 -r 85dc88630beb tests/test-hgwebdir --- a/tests/test-hgwebdir Sat Dec 06 20:10:31 2008 +0100 +++ b/tests/test-hgwebdir Wed Dec 10 00:16:12 2008 +0100 @@ -16,14 +16,8 @@ hg init c echo c > c/c hg --cwd c ci -Amc -d'3 0' +root=`pwd` -cd b -hg init d -echo d > d/d -hg --cwd d ci -Amd -cd .. - -root=`pwd` cd .. cat > paths.conf <