[Python-checkins] hooks: No need to duplicate information, or to display "tag: tip" in every email.
georg.brandl
python-checkins at python.org
Tue Mar 1 07:11:40 CET 2011
georg.brandl pushed 04e822217fb3 to hooks:
http://hg.python.org/hooks/rev/04e822217fb3
changeset: 38:04e822217fb3
tag: tip
user: Georg Brandl <georg at python.org>
date: Tue Mar 01 07:10:38 2011 +0100
summary:
No need to duplicate information, or to display "tag: tip" in every email.
files:
mail.py
diff --git a/mail.py b/mail.py
--- a/mail.py
+++ b/mail.py
@@ -29,9 +29,11 @@
user = os.environ.get('HGPUSHER', 'local')
path = '/'.join(repo.root.split('/')[4:])
- body = ['%s pushed %s to %s:' % (user, str(ctx), path), '']
+ body = []
+ #body += ['%s pushed %s to %s:' % (user, str(ctx), path), '']
body += [CSET_URL % (path, ctx)]
- body += log.splitlines()[:-2]
+ body += [line for line in log.splitlines()[:-2]
+ if line != 'tag: tip\n']
body += ['summary:\n ' + ctx.description(), '']
body += ['files:\n ' + '\n '.join(ctx.files()), '']
--
Repository URL: http://hg.python.org/hooks
More information about the Python-checkins
mailing list