gpt4 book ai didi

mercurial - 乌龟 Mercurial : how to get notified whe something pushed to a central repo

转载 作者:行者123 更新时间:2023-12-01 16:22:36 29 4
gpt4 key购买 nike

我正在使用 Mercurial 进行版本控制。一个中央仓库在团队之间共享,我们任何人都可以推/拉它。

当任何其他用户将某些内容推送到中央存储库时,我如何得到通知。

我尝试按照 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)

然后我尝试插入 sme 更改。但这并没有触发任何电子邮件。
你能检查一下我的 .hgrc 文件中有什么错误吗

最佳答案

您的通知扩展程序配置为处于测试模式。也许设置 test = False会有帮助吗?

关于mercurial - 乌龟 Mercurial : how to get notified whe something pushed to a central repo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10072233/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com