mercurial – tortoise hg:如何将某些内容推送到中央仓库时获得
发布时间:2020-12-20 13:27:31 所属栏目:Python 来源:网络整理
导读:我正在使用Mercurial进行版本控制.一个中央回购在团队中共享,我们任何人都可以推送/拉动它. 当其他任何用户向中央仓库推送内容时,我如何得到通知. 我试图按照https://www.mercurial-scm.org/wiki/NotifyExtension编辑我的hgrc文件 如下 [extensions]hgext.no
我正在使用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) 然后我试图推动涂改变.但这并没有触发任何电子邮件. 解决方法
您的Notify扩展配置为处于测试模式.也许设置test = False会有帮助吗?
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |