Mercurial > public > mercurial-scm > hg
diff hgext/churn.py @ 9654:96fe91be9c1e
walkchangerevs: yield contexts
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 25 Oct 2009 18:43:59 -0500 |
parents | 2cb0cab10d2e |
children | 6d7d3f849062 |
line wrap: on
line diff
--- a/hgext/churn.py Sun Oct 25 18:43:58 2009 -0500 +++ b/hgext/churn.py Sun Oct 25 18:43:59 2009 -0500 @@ -55,12 +55,11 @@ get = util.cachefunc(lambda r: repo[r]) m = cmdutil.match(repo, pats, opts) - for st, rev, fns in cmdutil.walkchangerevs(ui, repo, m, get, opts): - + for st, ctx, fns in cmdutil.walkchangerevs(ui, repo, m, get, opts): if not st == 'add': continue - ctx = get(rev) + rev = ctx.rev() if df and not df(ctx.date()[0]): # doesn't match date format continue