# HG changeset patch # User Alexander Solovyov <alexander@solovyov.net> # Date 1304087692 -7200 # Fri Apr 29 16:34:52 2011 +0200 # Node ID 9d2be7e17fc1999d734200ad7a991f3390a34bb7 # Parent 3fc7154396d23426a355e9403890837118d045f6 churn: strip key earlier to avoid false negative seach in aliases diff --git a/hgext/churn.py b/hgext/churn.py --- a/hgext/churn.py +++ b/hgext/churn.py @@ -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: