Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/hgext/churn.py Fri Apr 29 18:43:36 2011 +0300 +++ b/hgext/churn.py Fri Apr 29 16:34:52 2011 +0200 @@ -60,9 +60,8 @@ if df and not df(ctx.date()[0]): # doesn't match date format return - key = getkey(ctx) + key = getkey(ctx).strip() key = amap.get(key, key) # alias remap - key = key.strip() # ignore leading and trailing spaces if opts.get('changesets'): rate[key] = (rate.get(key, (0,))[0] + 1, 0) else: