# HG changeset patch # User Marco Beck # Date 1244033403 -7200 # Node ID 3d53820381cb368cc538c18ee2e42beda1dc20bb # Parent 73aa0510740d5dedfa945718187a566fceff54c2 templater: retain author's full name if no email is supplied (issue1685) diff -r 73aa0510740d -r 3d53820381cb 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()