[issue2276] annotate -u displays username fragments if email contains periods
Nick Bastin
bugs at mercurial.selenic.com
Tue Jul 6 23:45:58 UTC 2010
New submission from Nick Bastin <nick.bastin at gmail.com>:
hg annotate -u apparently tries to parse the email address of the user and
display this as a "short name", but is confused by periods:
username = Floyd Turbo <floyd.turbo at gmail.com>
username = Jane Turbo <jturbo at gmail.com>
% hg annotate -u server.py
...
floyd: self.bind_path_noargs("list-net-statuses", VMData.get_nets)
jturbo: self.bind_path_noargs("get-running-vms", VMData.get_running_vms)
jturbo: self.bind_path_noargs("get-registered-vms", VMData.get_registered_vms)
floyd: self.bind_path("set-net-status", VMData.set_net)
...
This isn't especially helpful when you have a lot of people named Floyd.
While it should definitely not arbitrarily cut off an email address at a
period, IMO it should use the non-email portion of the name if it exists (if
the user gave you a username, why try to make up a new one for them by
parsing their email address?)
----------
messages: 13034
nosy: nbastin
priority: bug
status: unread
title: annotate -u displays username fragments if email contains periods
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2276>
____________________________________________________
More information about the Mercurial-devel
mailing list