templater: retain author's full name if no email is supplied (issue1685)
authorMarco Beck <mbeck@miamod.de>
Wed, 03 Jun 2009 14:50:03 +0200
changeset 8697 3d53820381cb
parent 8696 73aa0510740d
child 8698 4ea995e5aac0
templater: retain author's full name if no email is supplied (issue1685)
mercurial/templatefilters.py
--- a/mercurial/templatefilters.py	Wed Jun 03 14:10:36 2009 +0200
+++ b/mercurial/templatefilters.py	Wed Jun 03 14:50:03 2009 +0200
@@ -96,6 +96,7 @@
 
 def person(author):
     '''get name of author, or else username.'''
+    if not '@' in author: return author
     f = author.find('<')
     if f == -1: return util.shortuser(author)
     return author[:f].rstrip()