##// 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 from mercurial import (
85 from mercurial import (
86 cmdutil,
86 cmdutil,
87 commands,
87 commands,
88 encoding,
88 error,
89 error,
89 formatter,
90 formatter,
90 hg,
91 hg,
@@ -669,7 +670,8 b' def email(ui, repo, *revs, **opts):'
669 start_time = util.makedate()
670 start_time = util.makedate()
670
671
671 def genmsgid(id):
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 # deprecated config: patchbomb.from
676 # deprecated config: patchbomb.from
675 sender = (opts.get('from') or ui.config('email', 'from') or
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