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