##// END OF EJS Templates
py3: use encoding.strtolocal() to convert str to bytes...
Pulkit Goyal -
r36467:a918c996 default
parent child Browse files
Show More
@@ -85,6 +85,7 b' from mercurial.i18n import _'
85 85 from mercurial import (
86 86 cmdutil,
87 87 commands,
88 encoding,
88 89 error,
89 90 formatter,
90 91 hg,
@@ -669,7 +670,8 b' def email(ui, repo, *revs, **opts):'
669 670 start_time = util.makedate()
670 671
671 672 def genmsgid(id):
672 return '<%s.%d@%s>' % (id[:20], int(start_time[0]), socket.getfqdn())
673 return '<%s.%d@%s>' % (id[:20], int(start_time[0]),
674 encoding.strtolocal(socket.getfqdn()))
673 675
674 676 # deprecated config: patchbomb.from
675 677 sender = (opts.get('from') or ui.config('email', 'from') or
General Comments 0
You need to be logged in to leave comments. Login now