我正在使用Mercurial进行版本控制。团队共享一个中央仓库,我们任何人都可以推送/拉取它。
其他用户向中央仓库推送内容时,我该如何收到通知?
我已尝试根据https://www.mercurial-scm.org/wiki/NotifyExtension编辑我的hgrc文件,如下所示:
其他用户向中央仓库推送内容时,我该如何收到通知?
我已尝试根据https://www.mercurial-scm.org/wiki/NotifyExtension编辑我的hgrc文件,如下所示:
[extensions]
hgext.notify =
[hooks]
# Enable either changegroup or incoming.
# changegroup will send one email for each push,
# whereas incoming sends one email per changeset.
changegroup.notify = python:hgext.notify.hook
#incoming.notify = python:hgext.notify.hook
[email]
from = **myemailaddresshere**
[smtp]
host = localhost
# presently it is necessary to specify the baseurl for the notify
# extension to work. It can be a dummy value if your repo isn't
# available via http
[web]
baseurl = **http://repoip:port/**
[notify]
# multiple sources can be specified as a whitespace separated list
sources = serve push pull bundle
# set this to False when you're ready for mail to start sending
test = True
[reposubs]
* = **toemailaddresshere**
#config = /path/to/subscription/file
# you can override the changeset template here, if you want.
# If it doesn't start with \n it may confuse the email parser.
# here's an example that makes the changeset template look more like hg log:
template = \ndetails: {baseurl}{webroot}/rev/{node|short}\nchangeset: {rev}:{node|short}\nuser: {author}\ndate: {date|date}\ndescription:\n{desc}\n
maxdiff = 300 # max lines of diffs to include (0=none, -1=all)
然后我尝试推送一些更改。但这没有触发任何电子邮件。 请您检查我的.hgrc文件中的错误。