changeset 5166:27845c5aefb3

obslog: use fm.data() instead of fm.write() because it's all templates now
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 18 Feb 2020 15:21:14 +0800
parents 7d0d066329f4
children 471b7a4acf9b
files hgext3rd/evolve/obshistory.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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: