hgext/churn.py
changeset 9654 96fe91be9c1e
parent 9652 2cb0cab10d2e
child 9655 6d7d3f849062
--- 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