--- a/hgext/churn.py Tue Aug 18 22:07:43 2009 -0400
+++ b/hgext/churn.py Thu Aug 20 08:34:22 2009 +0200
@@ -53,15 +53,17 @@
if opts.get('date'):
df = util.matchdate(opts['date'])
- get = util.cachefunc(lambda r: repo[r].changeset())
+ get = util.cachefunc(lambda r: repo[r])
changeiter, matchfn = cmdutil.walkchangerevs(ui, repo, pats, get, opts)
for st, rev, fns in changeiter:
+
if not st == 'add':
continue
- if df and not df(get(rev)[2][0]): # doesn't match date format
+
+ ctx = get(rev)
+ if df and not df(ctx.date()[0]): # doesn't match date format
continue
- ctx = repo[rev]
key = getkey(ctx)
key = amap.get(key, key) # alias remap
if opts.get('changesets'):