comparison hgext/churn.py @ 9670:7d56b6ffef72

churn: fix changeset count (broken by 9b127e888640)
author Alexander Solovyov <piranha@piranha.org.ua>
date Fri, 30 Oct 2009 13:40:23 +0200
parents 9b127e888640
children 5bbf4f130684
comparison
equal deleted inserted replaced
9669:9b127e888640 9670:7d56b6ffef72
61 return 61 return
62 62
63 key = getkey(ctx) 63 key = getkey(ctx)
64 key = amap.get(key, key) # alias remap 64 key = amap.get(key, key) # alias remap
65 if opts.get('changesets'): 65 if opts.get('changesets'):
66 rate[key] = rate.get(key, 0) + 1 66 rate[key] = (rate.get(key, (0,))[0] + 1, 0)
67 else: 67 else:
68 parents = ctx.parents() 68 parents = ctx.parents()
69 if len(parents) > 1: 69 if len(parents) > 1:
70 ui.note(_('Revision %d is a merge, ignoring...\n') % (rev,)) 70 ui.note(_('Revision %d is a merge, ignoring...\n') % (rev,))
71 return 71 return