doc-el commit 977:a53dea547ecc - admin: add a (disabled) sample ...

freebsd-doc-el at lists.hellug.gr freebsd-doc-el at lists.hellug.gr
Tue Oct 28 17:12:50 EET 2008


changeset: 977:a53dea547ecc
user:      keramida
date:      2008-10-28 17:10 +0200
details:   http://hg.hellug.gr/freebsd/doc-el/?cmd=changeset;node=a53dea547ecc

description:
	admin: add a (disabled) sample for the changegroup email hook too

diffstat:

1 file changed, 21 insertions(+), 1 deletion(-)
hgadmin/conf/hgrc |   22 +++++++++++++++++++++-

diffs (38 lines):

diff -r cf95174438c0 -r a53dea547ecc hgadmin/conf/hgrc
--- a/hgadmin/conf/hgrc	Tue Oct 28 11:52:37 2008 +0200
+++ b/hgadmin/conf/hgrc	Tue Oct 28 17:10:09 2008 +0200
@@ -31,13 +31,33 @@
 [web]
 baseurl = http://hg.hellug.gr/freebsd/doc-el/
 
+#
+# The notify.changegroup template is used for short, summary emails when
+# a batch of changes is pushed, when the `changegroup' hook is enabled.
+# Patches and diffstat output don't work very well with summary email
+# though, so the following options must be set to use it:
+#
+#   [hooks]
+#   changegroup.notify = python:hgext.notify.hook
+#
+#   [notify]
+#   diffstat = False
+#   maxdiff = 0
+#
+# Another important detail is that notify.changegroup *MUST* start with
+# a newline character, otherwise log entries will not show up in the
+# generated email.  This looks like a bug in the notify.py extension,
+# and it may take a while to find out what's going on if the initial
+# newline is missing, so please keep it there.
+#
 [notify]
 sources = serve push pull bundle
 test = False
 diffstat = True
 strip = 6
 maxdiff = 300
-template = From: freebsd-doc-el at lists.hellug.gr\nSubject: doc-el commit {rev}:{node|short} - {desc|firstline|strip}\n\nchangeset: {rev}:{node|short}\nuser:      {author}\ndate:      {date|isodate}\ndetails:   {baseurl}?cmd=changeset;node={node|short}\n\ndescription:\n\t{desc|tabindent|strip}\n
+incoming = From: freebsd-doc-el at lists.hellug.gr\nSubject: doc-el commit {rev}:{node|short} - {desc|firstline|strip}\n\nchangeset: {rev}:{node|short}\nuser:      {author}\ndate:      {date|isodate}\ndetails:   {baseurl}?cmd=changeset;node={node|short}\n\ndescription:\n\t{desc|tabindent|strip}\n
+changegroup = \n{baseurl}{webroot}?cmd=changeset;node={node|short}\nchangeset:  {rev}:{node|short}\nuser:       {author}\ndate:       {date|isodate}\nsummary:    {desc|strip|firstline}\n
 
 # Commit-mail subscriptions.
 [usersubs]




More information about the Freebsd-doc-el mailing list