Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templatefilters.py @ 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 | 08c93b07f5ad |
children | 0001e49f1c11 |
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()