diff mercurial/util.py @ 7495:90487273f59c

Merge with crew-stable
author Patrick Mezard <pmezard@gmail.com>
date Wed, 10 Dec 2008 00:29:10 +0100
parents 5185a24ce04e 85dc88630beb
children 9a962209dc28
line wrap: on
line diff
--- a/mercurial/util.py	Tue Dec 09 09:58:13 2008 +0000
+++ b/mercurial/util.py	Wed Dec 10 00:29:10 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')):