hgext/patchbomb.py
changeset 43099 f1c5358f0d65
parent 43085 eef9a2d67051
child 43117 8ff1ecfadcd1
--- a/hgext/patchbomb.py	Sat Oct 05 15:47:38 2019 -0400
+++ b/hgext/patchbomb.py	Sat Oct 05 23:04:45 2019 -0400
@@ -213,8 +213,8 @@
     if not tmpl:
         return b' '.join(flags)
     out = util.stringio()
-    opts = {b'template': templater.unquotestring(tmpl)}
-    with formatter.templateformatter(ui, out, b'patchbombflag', opts) as fm:
+    spec = formatter.templatespec(b'', templater.unquotestring(tmpl), None)
+    with formatter.templateformatter(ui, out, b'patchbombflag', {}, spec) as fm:
         fm.startitem()
         fm.context(ctx=repo[rev])
         fm.write(b'flags', b'%s', fm.formatlist(flags, name=b'flag'))