[PATCH 1 of 3] util.walkrepos() walks nested repos
Robin Farine
robin.farine at terminus.org
Sat Dec 23 00:13:24 UTC 2006
On Saturday December 23 2006 01:00, Benoit Boissinot wrote:
> On 12/22/06, Robin Farine <robin.farine at terminus.org> wrote:
> > # 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.
>
> Can you explain why you need this ?
When util.walkrepos() reaches the first '.hg' directory, it stops to
walk the current root by doing
...
dirs[:] = []
break
...
So if you run it on '.' with
.
./.hg
./nested1
./nested1/.hg
...
then walkrepos() only yields '.'.
Robin
More information about the Mercurial-devel
mailing list