|
a/Allura/allura/model/repository.py |
|
b/Allura/allura/model/repository.py |
|
... |
|
... |
313 |
if notify:
|
313 |
if notify:
|
314 |
Feed.post(
|
314 |
Feed.post(
|
315 |
self,
|
315 |
self,
|
316 |
title='New commit',
|
316 |
title='New commit',
|
317 |
description='%s<br><a href="%s%s">View Changes</a>' % (
|
317 |
description='%s<br><a href="%s%s">View Changes</a>' % (
|
318 |
ci.summary,config.common_prefix,ci.url()),
|
318 |
h.really_unicode(ci.summary),config.common_prefix,ci.url()),
|
319 |
author_link = ci.author_url,
|
319 |
author_link = ci.author_url,
|
320 |
author_name = ci.authored.name,
|
320 |
author_name = ci.authored.name,
|
321 |
)
|
321 |
)
|
322 |
commit_msgs.append('%s by %s <%s%s>' % (
|
322 |
commit_msgs.append('%s by %s <%s%s>' % (
|
323 |
ci.summary, ci.committed.name, config.common_prefix,ci.url()))
|
323 |
h.really_unicode(ci.summary), h.really_unicode(ci.committed.name), config.common_prefix,ci.url()))
|
324 |
if commit_msgs:
|
324 |
if commit_msgs:
|
325 |
if len(commit_msgs) > 1:
|
325 |
if len(commit_msgs) > 1:
|
326 |
subject = '%d new commits to %s %s' % (
|
326 |
subject = '%d new commits to %s %s' % (
|
327 |
len(commit_msgs), self.app.project.name, self.app.config.options.mount_label)
|
327 |
len(commit_msgs), self.app.project.name, self.app.config.options.mount_label)
|
328 |
text='\n\n'.join(commit_msgs)
|
328 |
text='\n\n'.join(commit_msgs)
|
329 |
else:
|
329 |
else:
|
330 |
subject = '%s committed to %s %s: %s' % (
|
330 |
subject = '%s committed to %s %s: %s' % (
|
331 |
ci.committed.name,
|
331 |
h.really_unicode(ci.committed.name),
|
332 |
self.app.project.name,
|
332 |
self.app.project.name,
|
333 |
self.app.config.options.mount_label,
|
333 |
self.app.config.options.mount_label,
|
334 |
ci.summary)
|
334 |
h.really_unicode(ci.summary))
|
335 |
text = ci.message
|
335 |
text = h.really_unicode(ci.message)
|
336 |
Notification.post(
|
336 |
Notification.post(
|
337 |
artifact=self,
|
337 |
artifact=self,
|
338 |
topic='metadata',
|
338 |
topic='metadata',
|
339 |
subject=subject,
|
339 |
subject=subject,
|
340 |
text=text)
|
340 |
text=text)
|