[pypy-svn] commit/buildbot: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Fri Dec 17 15:56:07 CET 2010
2 new changesets in buildbot:
http://bitbucket.org/pypy/buildbot/changeset/1ef36755865e/
changeset: r385:1ef36755865e
user: antocuni
date: 2010-12-17 15:47:42
summary: add link to the bitbucket changeset page
affected #: 1 file (111 bytes)
--- a/bitbucket_hook/hook.py Fri Dec 17 15:41:16 2010 +0100
+++ b/bitbucket_hook/hook.py Fri Dec 17 15:47:42 2010 +0100
@@ -29,13 +29,13 @@
msg['Subject'] = subject
smtp.sendmail(from_, [to], msg.as_string())
-template = """\
+TEMPLATE = """\
Author: {author}
Branch: {branches}
Changeset: {node|short}
Date: {date|isodate}
-Log:
-\t{desc|tabindent}
+%(url)s
+Log:\t{desc|tabindent}
"""
@@ -63,6 +63,8 @@
line0 = lines and lines[0] or ''
reponame = self.payload['repository']['name']
# TODO: maybe include the modified paths in the subject line?
+ url = self.remote_repo + '/changeset/' + commit['node'] + '/'
+ template = TEMPLATE % url
subject = '%s %s: %s' % (reponame, commit['branch'], line0)
body = hg('-R', self.local_repo, 'log', '-r', hgid,
'--template', template)
http://bitbucket.org/pypy/buildbot/changeset/2f068e0bbdd0/
changeset: r386:2f068e0bbdd0
user: antocuni
date: 2010-12-17 15:55:35
summary: fix the url
affected #: 1 file (9 bytes)
--- a/bitbucket_hook/hook.py Fri Dec 17 15:47:42 2010 +0100
+++ b/bitbucket_hook/hook.py Fri Dec 17 15:55:35 2010 +0100
@@ -35,6 +35,7 @@
Changeset: {node|short}
Date: {date|isodate}
%(url)s
+
Log:\t{desc|tabindent}
"""
@@ -63,8 +64,8 @@
line0 = lines and lines[0] or ''
reponame = self.payload['repository']['name']
# TODO: maybe include the modified paths in the subject line?
- url = self.remote_repo + '/changeset/' + commit['node'] + '/'
- template = TEMPLATE % url
+ url = self.remote_repo + 'changeset/' + commit['node'] + '/'
+ template = TEMPLATE % {'url': url}
subject = '%s %s: %s' % (reponame, commit['branch'], line0)
body = hg('-R', self.local_repo, 'log', '-r', hgid,
'--template', template)
Repository URL: https://bitbucket.org/pypy/buildbot/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the Pypy-commit
mailing list