changeset 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 3fc7154396d2
children bcc6ed0f6c3b
files hgext/churn.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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: