changeset 8697:3d53820381cb

templater: retain author's full name if no email is supplied (issue1685)
author Marco Beck <mbeck@miamod.de>
date Wed, 03 Jun 2009 14:50:03 +0200
parents 73aa0510740d
children 4ea995e5aac0
files mercurial/templatefilters.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()