Show More
@@ -93,7 +93,7 b' summary: {desc|firstline}' | |||||
93 |
|
93 | |||
94 | deftemplates = { |
|
94 | deftemplates = { | |
95 | 'changegroup': multiple_template, |
|
95 | 'changegroup': multiple_template, | |
96 | } |
|
96 | } | |
97 |
|
97 | |||
98 | class notifier(object): |
|
98 | class notifier(object): | |
99 | '''email notification class.''' |
|
99 | '''email notification class.''' | |
@@ -212,7 +212,8 b' class notifier(object):' | |||||
212 | msg['From'] = sender |
|
212 | msg['From'] = sender | |
213 |
|
213 | |||
214 | msg['Date'] = util.datestr(date=util.makedate(), |
|
214 | msg['Date'] = util.datestr(date=util.makedate(), | |
215 |
format="%a, %d %b %Y %H:%M:%S", |
|
215 | format="%a, %d %b %Y %H:%M:%S", | |
|
216 | timezone=True) | |||
216 | fix_subject() |
|
217 | fix_subject() | |
217 | fix_sender() |
|
218 | fix_sender() | |
218 |
|
219 | |||
@@ -230,7 +231,7 b' class notifier(object):' | |||||
230 | self.ui.write('\n') |
|
231 | self.ui.write('\n') | |
231 | else: |
|
232 | else: | |
232 | self.ui.status(_('notify: sending %d subscribers %d changes\n') % |
|
233 | self.ui.status(_('notify: sending %d subscribers %d changes\n') % | |
233 |
|
|
234 | (len(self.subs), count)) | |
234 | mail.sendmail(self.ui, templater.email(msg['From']), |
|
235 | mail.sendmail(self.ui, templater.email(msg['From']), | |
235 | self.subs, msgtext) |
|
236 | self.subs, msgtext) | |
236 |
|
237 | |||
@@ -266,7 +267,7 b' def hook(ui, repo, hooktype, node=None, ' | |||||
266 | return |
|
267 | return | |
267 | if n.skipsource(source): |
|
268 | if n.skipsource(source): | |
268 | ui.debug(_('notify: changes have source "%s" - skipping\n') % |
|
269 | ui.debug(_('notify: changes have source "%s" - skipping\n') % | |
269 |
|
|
270 | source) | |
270 | return |
|
271 | return | |
271 | node = bin(node) |
|
272 | node = bin(node) | |
272 | ui.pushbuffer() |
|
273 | ui.pushbuffer() |
General Comments 0
You need to be logged in to leave comments.
Login now