HG 4.4.1 in Ubuntu 14.04 notify does not work

Uwe Brauer oub at mat.ucm.es
Wed Oct 2 13:16:33 UTC 2019



Hi

With the same setting as in a Laptop (running Ubuntu 16)
I obtain the following error when I push 
 gnustls is installed.

Setting is 

[email]
method = smtp

[smtp]
host = smtp.gmail.com
# Optional options:
username = user
password = secret
port = 587
# tls = true # Alternative values: smtps, starttls (equivalent of true)
tls = starttls



notify: sending 2 subscribers 1 changes
error: outgoing.notify hook raised an exception: [Errno -2] Name or service not known
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mercurial/hook.py", line 94, in _pythonhook
    r = obj(ui=ui, repo=repo, hooktype=htype, **args)
  File "/usr/lib/python2.7/dist-packages/hgext/notify.py", line 484, in hook
    n.send(ctx, count, data)
  File "/usr/lib/python2.7/dist-packages/hgext/notify.py", line 402, in send
    subs, msgtext, mbox=self.mbox)
  File "/usr/lib/python2.7/dist-packages/mercurial/mail.py", line 172, in sendmail
    send = connect(ui, mbox=mbox)
  File "/usr/lib/python2.7/dist-packages/mercurial/mail.py", line 168, in connect
    return _smtp(ui)
  File "/usr/lib/python2.7/dist-packages/mercurial/mail.py", line 104, in _smtp
    s.connect(host=mailhost, port=mailport)
  File "/usr/lib/python2.7/smtplib.py", line 316, in connect
    self.sock = self._get_socket(host, port, self.timeout)
  File "/usr/lib/python2.7/smtplib.py", line 291, in _get_socket
    return socket.create_connection((host, port), timeout)
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno -2] Name or service not known

Any ideas?

Any help is very much appreciated since notify is a very important
extension to me.

Regards


Uwe Brauer 



More information about the Mercurial mailing list