[PATCH 1 of 3] util.walkrepos() walks nested repos

Robin Farine robin.farine at terminus.org
Fri Dec 22 22:53:12 UTC 2006


# HG changeset patch
# User Robin Farine <robin.farine at terminus.org>
# Date 1166828393 -3600
# Node ID 6fbd69149e27e13bb466b99e812f4ebfbbecfd30
# Parent  79cf097774ef503ff09b878214c153870d7c7df1
util.walkrepos() walks nested repos

The current behavior of util.walkrepos() is to prune nested repositories.
This patch modifies util.walkrepos() to descend into the repositories it
finds to look for nested repositories.

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -1267,8 +1267,7 @@ def walkrepos(path):
         for d in dirs:
             if d == '.hg':
                 yield root
-                dirs[:] = []
-                break
+                dirs.remove(d)
 
 _rcpath = None
 



More information about the Mercurial-devel mailing list