hg 4.7: Replace call to util.email with templatefilters.email

This change is required for Mercurial 4.7 support and fixes #137.
This commit is contained in:
Daniel Small
2018-08-06 15:08:29 +10:00
committed by Frej Drejhammar
parent ac60034ba3
commit 2bb173ef68

View File

@@ -49,7 +49,7 @@ def fixup_user(user,authors):
# and mail from hg helpers. this seems to work pretty well.
# if email doesn't contain @, replace it with devnull@localhost
name=templatefilters.person(user)
mail='<%s>' % util.email(user)
mail='<%s>' % templatefilters.email(user)
if '@' not in mail:
mail = '<devnull@localhost>'
else: