comparison hgext/churn.py @ 14040:9d2be7e17fc1

churn: strip key earlier to avoid false negative seach in aliases
author Alexander Solovyov <alexander@solovyov.net>
date Fri, 29 Apr 2011 16:34:52 +0200
parents 2506658c3927
children a90131b85fd8
comparison
equal deleted inserted replaced
14039:3fc7154396d2 14040:9d2be7e17fc1
58 def prep(ctx, fns): 58 def prep(ctx, fns):
59 rev = ctx.rev() 59 rev = ctx.rev()
60 if df and not df(ctx.date()[0]): # doesn't match date format 60 if df and not df(ctx.date()[0]): # doesn't match date format
61 return 61 return
62 62
63 key = getkey(ctx) 63 key = getkey(ctx).strip()
64 key = amap.get(key, key) # alias remap 64 key = amap.get(key, key) # alias remap
65 key = key.strip() # ignore leading and trailing spaces
66 if opts.get('changesets'): 65 if opts.get('changesets'):
67 rate[key] = (rate.get(key, (0,))[0] + 1, 0) 66 rate[key] = (rate.get(key, (0,))[0] + 1, 0)
68 else: 67 else:
69 parents = ctx.parents() 68 parents = ctx.parents()
70 if len(parents) > 1: 69 if len(parents) > 1: