# HG changeset patch # User Anton Shestakov # Date 1582010474 -28800 # Node ID 27845c5aefb35739da33af7cf5950124630c2dbd # Parent 7d0d066329f4cbb58eb954e85abeea8313db1b93 obslog: use fm.data() instead of fm.write() because it's all templates now diff -r 7d0d066329f4 -r 27845c5aefb3 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: