Show More
@@ -161,6 +161,7 b' from mercurial import (' | |||
|
161 | 161 | logcmdutil, |
|
162 | 162 | mail, |
|
163 | 163 | patch, |
|
164 | pycompat, | |
|
164 | 165 | registrar, |
|
165 | 166 | util, |
|
166 | 167 | ) |
@@ -559,7 +560,10 b' def messageid(ctx, domain, messageidseed' | |||
|
559 | 560 | host = encoding.strtolocal(socket.getfqdn()) |
|
560 | 561 | if messageidseed: |
|
561 | 562 | messagehash = hashlib.sha512(ctx.hex() + messageidseed) |
|
562 |
messageid = b'<hg.%s@%s>' % ( |
|
|
563 | messageid = b'<hg.%s@%s>' % ( | |
|
564 | pycompat.sysbytes(messagehash.hexdigest()[:64]), | |
|
565 | host, | |
|
566 | ) | |
|
563 | 567 | else: |
|
564 | 568 | messageid = b'<hg.%s.%d.%d@%s>' % ( |
|
565 | 569 | ctx, |
General Comments 0
You need to be logged in to leave comments.
Login now