Show More
@@ -26,6 +26,7 b' from mercurial.i18n import _' | |||||
26 | from mercurial import ( |
|
26 | from mercurial import ( | |
27 | encoding, |
|
27 | encoding, | |
28 | error, |
|
28 | error, | |
|
29 | formatter, | |||
29 | logcmdutil, |
|
30 | logcmdutil, | |
30 | mail, |
|
31 | mail, | |
31 | obsutil, |
|
32 | obsutil, | |
@@ -62,7 +63,7 b' def _report_commit(ui, repo, ctx):' | |||||
62 | b'notify_obsoleted', b'messageidseed' |
|
63 | b'notify_obsoleted', b'messageidseed' | |
63 | ) or ui.config(b'notify', b'messageidseed') |
|
64 | ) or ui.config(b'notify', b'messageidseed') | |
64 | template = ui.config(b'notify_obsoleted', b'template') |
|
65 | template = ui.config(b'notify_obsoleted', b'template') | |
65 |
spec = |
|
66 | spec = formatter.literal_templatespec(template) | |
66 | templater = logcmdutil.changesettemplater(ui, repo, spec) |
|
67 | templater = logcmdutil.changesettemplater(ui, repo, spec) | |
67 | ui.pushbuffer() |
|
68 | ui.pushbuffer() | |
68 | n = notify.notifier(ui, repo, b'incoming') |
|
69 | n = notify.notifier(ui, repo, b'incoming') |
@@ -26,6 +26,7 b' from mercurial.i18n import _' | |||||
26 | from mercurial import ( |
|
26 | from mercurial import ( | |
27 | encoding, |
|
27 | encoding, | |
28 | error, |
|
28 | error, | |
|
29 | formatter, | |||
29 | logcmdutil, |
|
30 | logcmdutil, | |
30 | mail, |
|
31 | mail, | |
31 | pycompat, |
|
32 | pycompat, | |
@@ -61,7 +62,7 b' def _report_commit(ui, repo, ctx):' | |||||
61 | b'notify_published', b'messageidseed' |
|
62 | b'notify_published', b'messageidseed' | |
62 | ) or ui.config(b'notify', b'messageidseed') |
|
63 | ) or ui.config(b'notify', b'messageidseed') | |
63 | template = ui.config(b'notify_published', b'template') |
|
64 | template = ui.config(b'notify_published', b'template') | |
64 |
spec = |
|
65 | spec = formatter.literal_templatespec(template) | |
65 | templater = logcmdutil.changesettemplater(ui, repo, spec) |
|
66 | templater = logcmdutil.changesettemplater(ui, repo, spec) | |
66 | ui.pushbuffer() |
|
67 | ui.pushbuffer() | |
67 | n = notify.notifier(ui, repo, b'incoming') |
|
68 | n = notify.notifier(ui, repo, b'incoming') |
General Comments 0
You need to be logged in to leave comments.
Login now