The task is: Setup Mercurial on the production server to push email notifications on an email address when someone pushes a new commit from their PC to the repo.
So I'm trying to configure and test NotifyExtension on my local repository. I'm testing HG SERVE to check if I'm getting any emails.
What I tried so far:
[paths]
default = https://source.server.com/hg/repo-name
# path aliases to other clones of this repo in URLs or filesystem paths
# (see 'hg help config.paths' for more info)
#
# default:pushurl = ssh://jdoe@example.net/hg/jdoes-fork
# my-fork = ssh://jdoe@example.net/hg/jdoes-fork
# my-clone = /home/jdoe/jdoes-clone
[ui]
# name and email (local to this repository, optional), e.g.
# username = Jane Doe <jdoe@example.com>
[extensions]
notify=
[hooks]
changegroup.notify = python:hgext.notify.hook
incoming.notify = python:hgext.notify.hook
outgoing.notify = python:hgext.notify.hook
[email]
from = Name Lastname <name.lastname@server.com>
[smtp]
host = mail.server.com
username = name.lastname@server.com
password = mypasswordstring
port = 465
tls = true
[web]
baseurl = https://source.server.com/hg
[reposubs]
* = name.lastname@server.com
[notify]
sources = serve push pull bundle
test = False
[ui]
debug = True
Might be obvious to someone, but it's not sending any emails.
Running in my repository:
hg help
returns that notify extension is enabled but I'm not getting any emails.
- Do I need any software other than Mercurial installed? (Running Ubuntu 18.04.2 LTS locally)
- Is there any place I can check for logs?
- What could be wrong in my configuration?
Thanks in advance.