2011-01-28 6 views
0

코드를 커밋 할 때 Windows에서 Mercurial에서 전자 메일을 보내려고합니다. Mercurial.ini 파일, 그것은 거짓 테스트 =와 테스트 = True 또는 이메일 아무것도 아무것도 인쇄되지 않습니다, 그러나,Mercurial에서 전자 메일을 보내지 않겠습니다.

[ui] 
username = PherricOxide 

[tortoisehg] 
ui.language = en 
summarylen = 70 
messagewrap = 80 
closeci = False 
engmsg = True 
statustab = 0 

[extensions] 
hgext.notify = 

[hooks] 
changegroup.notify = python:hgext.notify.hook 
incoming.notify = python:hgext.notify.hook 

[email] 
from = [email protected] 

[smtp] 
host = inetmail.company.net 

[web] 
baseurl = http://dev/... 

[notify] 
sources = serve push pull bundle 
test = True 
config = \temp\subscription.conf 
template = \ndetails: {baseurl}{webroot}/rev/{node|short}\nchangeset: {rev}:{node|short}\nuser:  {author}\ndate:  {date|date}\ndescription:\n{desc}\n 
maxdiff = 300 

가 포함되어 있습니다. 나는 이유에 어떤 아이디어가보다

C:\test>hg push -v \test2 
pushing to \test2 
searching for changes 
1 changesets found 
adding changesets 
adding manifests 
adding file changes 
added 1 changesets with 1 changes to 1 files 
calling hook changegroup.notify: hgext.notify.hook 
calling hook incoming.notify: hgext.notify.hook 

그리고 커밋이 전혀 훅을 유발하지 않는 것

푸시 쇼,

C:\test>hg -v commit -m "test" 
test.txt 
committed changeset 11:a4ed0680b183 

더 의욕 기술을 가진 사람이 있습니까 깨진 것 같니?

답변

1

커밋은 후크를 트리거하지 않으며 리파지토리에만 푸시합니다. 즉 changegroupincoming이 수행합니다. 당신은 아마 그 둘 중 하나만 원할 것입니다.

\temp\subscription.conf의 내용은 무엇입니까? 해당 파일에 [reposubs] 또는 [usersubs] 항목이 누락되었거나 잘못 표시되면 이메일을받지 못합니다.

관련 문제