Mercurial > hg-stable
changeset 39155:1415b78869eb
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
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Thu, 16 Aug 2018 00:40:20 -0400 |
parents | 4899c6d22dff |
children | 1f987f7c832b |
files | hgext/patchbomb.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/patchbomb.py Thu Aug 16 00:39:32 2018 -0400 +++ b/hgext/patchbomb.py Thu Aug 16 00:40:20 2018 -0400 @@ -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)')),