Mercurial > public > mercurial-scm > hg
diff hgext/churn.py @ 9652:2cb0cab10d2e
walkchangerevs: pull out matchfn
* * *
imported patch mercurial/commands.py
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 25 Oct 2009 18:43:56 -0500 |
parents | ceb0f59e1327 |
children | 96fe91be9c1e |
line wrap: on
line diff
--- a/hgext/churn.py Mon Sep 21 19:21:32 2009 +0200 +++ b/hgext/churn.py Sun Oct 25 18:43:56 2009 -0500 @@ -54,8 +54,8 @@ df = util.matchdate(opts['date']) get = util.cachefunc(lambda r: repo[r]) - changeiter, matchfn = cmdutil.walkchangerevs(ui, repo, pats, get, opts) - for st, rev, fns in changeiter: + m = cmdutil.match(repo, pats, opts) + for st, rev, fns in cmdutil.walkchangerevs(ui, repo, m, get, opts): if not st == 'add': continue