churn: strip key earlier to avoid false negative seach in aliases
authorAlexander Solovyov <alexander@solovyov.net>
Fri, 29 Apr 2011 16:34:52 +0200
changeset 14040 9d2be7e17fc1
parent 14039 3fc7154396d2
child 14041 bcc6ed0f6c3b
churn: strip key earlier to avoid false negative seach in aliases
hgext/churn.py
--- 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: