[PATCH] Refactor dir/history walking

Bryan O'Sullivan bos at serpentine.com
Tue Jul 12 04:57:38 UTC 2005


On Sat, 2005-07-09 at 22:30 -0700, Matt Mackall wrote:

> Almost. It also wants to integrate with changes() in some fashion.
> 
> So let's imagine a function repo.walk(rev, matchfunc) that walks
> through a manifest and applies matchfunc. If rev is None, it calls out
> to dirstate.walk(matchfunc) which does more or less the same, except
> takes added and removed files into account. And then both changes
> funcs are modified to take a matchfunc.

Here's the start of a patch series with that end in mind, so you can see
what I'm thinking.

As you can see, no existing functionality has been changed, save for
dirstate.changes being rewritten in terms of dirstate.walk.  Next target
is localrepository.changes.

	<b
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hg-walk.patch
Type: text/x-patch
Size: 3752 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20050711/53c076dc/attachment-0001.bin>


More information about the Mercurial mailing list