Bug 2546 - hg churn aliasing fails with leading whitespace
Summary: hg churn aliasing fails with leading whitespace
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: normal bug
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-12 14:43 UTC by Paul Gestwicki
Modified: 2012-05-13 05:00 UTC (History)
4 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Gestwicki 2010-12-12 14:43 UTC
The churn extension's alias support does not work properly when an alias has 
leading whitespace. I have a contributor who has accidentally committed as 
both "x@y.com" and " x@y.com". Adding the entry " x@y.com = x@y.com" to the 
aliases list does not combine the contributions for churn output: separate 
output is produced for "x@y.com" and " x@y.com".
Comment 1 Nicolas Dumazet 2010-12-13 02:55 UTC
it's true that we probably dont care about spaces around emails.
I pushed a fix in stable as 2245fcd0e160
Comment 2 HG Bot 2010-12-14 16:00 UTC
Fixed by http://selenic.com/repo/hg/rev/2506658c3927
Nicolas Dumazet <nicdumz.commits@gmail.com>
churn: ignore trailing and leading spaces (issue2546)

(please test the fix)
Comment 3 Bugzilla 2012-05-12 09:15 UTC

--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:15 EDT  ---

This bug was previously known as _bug_ 2546 at http://mercurial.selenic.com/bts/issue2546