Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tortoise hg : how to get notified whe something pushed to a central repo

i am using Mercurial for version control. One central repo is shared among the team and any of us can push / pull to it.

How can i get notified when any other user push something to the central repo.

I have tried to edit my hgrc file as per the https://www.mercurial-scm.org/wiki/NotifyExtension

as below

    [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)

then i tried to push sme changes . But this didnt fire any email. Can you please check what is error in my .hgrc file

like image 901
png Avatar asked Nov 13 '22 07:11

png


1 Answers

Your Notify extension is configured to be in test mode. Maybe setting test = False will help?

like image 188
Michal Sznajder Avatar answered Dec 09 '22 08:12

Michal Sznajder