Skip to content
Snippets Groups Projects
Commit d28d3763 authored by Chris Wanstrath's avatar Chris Wanstrath
Browse files

Deal with hg authors missing email attributes.

parent a061dce2
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,12 @@
commit = {}
commit['tree'] = tree_sha
(time, timezone) = ctx.date()
commit['author'] = ctx.user() + ' ' + str(int(time)) + ' ' + seconds_to_offset(timezone)
# hg authors might not have emails
author = ctx.user()
if not '>' in author:
author = author + ' <none@none>'
commit['author'] = author + ' ' + str(int(time)) + ' ' + seconds_to_offset(timezone)
message = ctx.description()
commit['message'] = ctx.description()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment