Skip to content
Snippets Groups Projects
Commit 1415b788 authored by durin42's avatar durin42
Browse files

patchbomb: allow using HGHOSTNAME to force a hostname

I'll update run-tests.py to set this globally to stabilize some
tests. The variable name is intentionally generic because I suspect we
should generalize this to other tests.

Differential Revision: https://phab.mercurial-scm.org/D4294
parent 4899c6d2
No related branches found
No related tags found
No related merge requests found
......@@ -470,8 +470,9 @@
return revs
def _msgid(node, timestamp):
return '<%s.%d@%s>' % (node, timestamp,
encoding.strtolocal(socket.getfqdn()))
hostname = encoding.strtolocal(socket.getfqdn())
hostname = encoding.environ.get('HGHOSTNAME', hostname)
return '<%s.%d@%s>' % (node, timestamp, hostname)
emailopts = [
('', 'body', None, _('send patches as inline message text (default)')),
......
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