diff --git a/mercurial/templatefilters.py b/mercurial/templatefilters.py index fe4621a598..cebac304b9 100644 --- a/mercurial/templatefilters.py +++ b/mercurial/templatefilters.py @@ -96,6 +96,7 @@ def domain(author): 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()