# HG changeset patch # User César Izurieta # Date 1306189773 10800 # Node ID f17ca8ed620c9f07b9094625fc9989dfeb137f17 # Parent 6d4f3b6d2e0838a8e11169afbbb8dbcc835e0799 Use author as email when it is an email diff --git a/hggit/git_handler.py b/hggit/git_handler.py --- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -286,6 +286,8 @@ if len(a.group(3)) > 0: name += ' ext:(' + urllib.quote(a.group(3)) + ')' author = name + ' <' + email + '>' + elif '@' in author: + author = author + ' <' + author + '>' else: author = author + ' '