obslog: use fm.data() instead of fm.write() because it's all templates now
authorAnton Shestakov <av6@dwimlabs.net>
Tue, 18 Feb 2020 15:21:14 +0800
changeset 5166 27845c5aefb3
parent 5165 7d0d066329f4
child 5167 471b7a4acf9b
obslog: use fm.data() instead of fm.write() because it's all templates now
hgext3rd/evolve/obshistory.py
--- a/hgext3rd/evolve/obshistory.py	Fri Mar 06 22:06:05 2020 +0700
+++ b/hgext3rd/evolve/obshistory.py	Tue Feb 18 15:21:14 2020 +0800
@@ -509,13 +509,13 @@
 
     effects = _markerseffects([marker])
     if effects:
-        fmteffect = fm.formatlist(effects, b'effect', sep=b', ')
-        fm.write(b'effects', b'(%s)', fmteffect)
+        fmteffects = fm.formatlist(effects, b'effect', sep=b', ')
+        fm.data(effects=fmteffects)
 
     if len(succnodes) > 0:
         hexnodes = (nodemod.hex(succnode) for succnode in sorted(succnodes))
         nodes = fm.formatlist(hexnodes, b'succnode')
-        fm.write(b'succnodes', b'%s', nodes)
+        fm.data(succnodes=nodes)
 
     operation = metadata.get(b'operation')
     if operation: