首页 > 解决方案 > hg notify 在推送时给出“中断”

问题描述

我的本地机器上有一个乌龟存储库。我想在推送时发送通知邮件。

在推动更改时,所给出的只是“中断!”的消息。我无法弄清楚确切的问题。有人可以帮助了解有关错误的更多详细信息。

<<推送后输出>>

% hg push http://localhost/mercurial/test_mail
pushing to http://localhost/mercurial/test_mail
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 3 changesets with 3 changes to 2 files
[command completed successfully Thu Jan 31 09:07:39 2019]
interrupted!

<<.hg/hgrc>> 在该存储库中

[extensions]
notify = 

[hooks]
changegroup.notify = python:hgext.notify.hook
#commit.notify = python:hgext.notify.hook

[email]
from = Testing Email Notifications <mailid@company.com>
method = smtp

[smtp]
host = localhost

[notify]
sources = serve serve push pull bundle
test =False
template =
  details:   {baseurl}/{webroot}/rev/{node|short}
  branches:  {branches}
  changeset: {rev}:{node|short}
  user:      {author}
  date:      {date|date}
  description:
  {desc}\n

maxdiff = 1000

[usersubs]
# key is subscriber email, value is comma-separated list of glob patterns
abc@gmail.com = *

[reposubs]
* = mailid@company.com

[web]
baseurl = http://localhost/mercurial/

标签: mercurialtortoisehgmercurial-extension

解决方案


推荐阅读