[Updated] D8853: templatespec: use new factory functions in hooklib
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sun Aug 2 16:34:31 UTC 2020
Closed by commit rHG3c2fae87bd5a: templatespec: use new factory functions in hooklib (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8853?vs=22163&id=22190
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8853/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8853
AFFECTED FILES
hgext/hooklib/changeset_obsoleted.py
hgext/hooklib/changeset_published.py
CHANGE DETAILS
diff --git a/hgext/hooklib/changeset_published.py b/hgext/hooklib/changeset_published.py
--- a/hgext/hooklib/changeset_published.py
+++ b/hgext/hooklib/changeset_published.py
@@ -26,6 +26,7 @@
from mercurial import (
encoding,
error,
+ formatter,
logcmdutil,
mail,
pycompat,
@@ -61,7 +62,7 @@
b'notify_published', b'messageidseed'
) or ui.config(b'notify', b'messageidseed')
template = ui.config(b'notify_published', b'template')
- spec = logcmdutil.templatespec(template, None)
+ spec = formatter.literal_templatespec(template)
templater = logcmdutil.changesettemplater(ui, repo, spec)
ui.pushbuffer()
n = notify.notifier(ui, repo, b'incoming')
diff --git a/hgext/hooklib/changeset_obsoleted.py b/hgext/hooklib/changeset_obsoleted.py
--- a/hgext/hooklib/changeset_obsoleted.py
+++ b/hgext/hooklib/changeset_obsoleted.py
@@ -26,6 +26,7 @@
from mercurial import (
encoding,
error,
+ formatter,
logcmdutil,
mail,
obsutil,
@@ -62,7 +63,7 @@
b'notify_obsoleted', b'messageidseed'
) or ui.config(b'notify', b'messageidseed')
template = ui.config(b'notify_obsoleted', b'template')
- spec = logcmdutil.templatespec(template, None)
+ spec = formatter.literal_templatespec(template)
templater = logcmdutil.changesettemplater(ui, repo, spec)
ui.pushbuffer()
n = notify.notifier(ui, repo, b'incoming')
To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200802/c57e93a9/attachment-0002.html>
More information about the Mercurial-patches
mailing list