[gambit-list] Emailing changes automatically

Marc Feeley feeley at iro.umontreal.ca
Wed Sep 12 12:12:18 EDT 2007


I would like to automatically send to the Gambit mailing list all the  
changes that are made to the Gambit repository.  I tried following  
the instructions in:

http://morecode.wordpress.com/2007/08/03/setting-up-mercurial-to-e- 
mail-on-a-commit/

but that doesn't seem to work.  Does anyone here have experience with  
doing that?  The .hg/hgrc file I'm using is attached below.

Marc

[paths]
default-push = ssh://gambit@trex.iro.umontreal.ca/HTML/repo/gambit
default = http://www.iro.umontreal.ca/~gambit/repo/gambit/

[extensions]
hgext.notify =

[hooks]
# batch emails when many changesets incoming at one time
changegroup.notify = python:hgext.notify.hook

[smtp]
host = localhost

[email]
from = gambit at iro.umontreal.ca

[web]
baseurl = http://www.iro.umontreal.ca/~gambit/repo/gambit/

[notify]
# config items go in here
config = /part/02/www-perso/usagers/gambit/HTML/repo/notify.conf
maxdiff = 0            # max lines of diffs to include (0=none, -1=all)
maxsubject = 67        # truncate subject line longer than this
diffstat = False       # add a diffstat before the diff content
sources = serve push pull bundle # notify if source of incoming  
changes in this\ list
# 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


Note that the file /part/02/www-perso/usagers/gambit/HTML/repo/ 
notify.conf contains:

[reposubs]
# key is glob pattern, value is ","-separated list of subscriber emails
* = feeley at iro.umontreal.ca

#   [usersubs]
#   # key is subscriber email, value is ","-separated list of glob  
patterns
#   user at host = pattern
#
#   [reposubs]
#   # key is glob pattern, value is ","-separated list of subscriber  
emails
#   pattern = user at host




More information about the Gambit-list mailing list