[PATCH] make walkrepos() walk nested repos

Robin Farine robin.farine at terminus.org
Mon Dec 18 17:36:58 UTC 2006


This patch changes util.walkrepos() to yield nested repositories rather than
of skipping them.

# HG changeset patch
# User Robin Farine <robin.farine at terminus.org>
# Date 1166463154 -3600
# Node ID a9399bd3d986bb7ad93284f0ad8a5c5dc0a349ec
# Parent  33988aaa16520de1e3aae20fbcbce6cd7c308703
make walkrepos() walk nested repos

diff -r 33988aaa1652 -r a9399bd3d986 mercurial/util.py
--- a/mercurial/util.py	Sun Dec 17 22:16:57 2006 -0600
+++ b/mercurial/util.py	Mon Dec 18 18:32:34 2006 +0100
@@ -1267,8 +1267,7 @@ def walkrepos(path):
         for d in dirs:
             if d == '.hg':
                 yield root
-                dirs[:] = []
-                break
+                dirs.remove('.hg')
 
 _rcpath = None
 



More information about the Mercurial-devel mailing list