obslog: avoid using a formatter after calling end() on it
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 07 Nov 2019 23:10:26 -0800
changeset 4940 93c89814a5d8
parent 4939 7aba58dc4b73
child 4941 c6fb901b7bc8
obslog: avoid using a formatter after calling end() on it I don't know if makes a difference, but it feels wrong to use it after calling end(). We can simply use the parent formatter in this case.
hgext3rd/evolve/obshistory.py
--- a/hgext3rd/evolve/obshistory.py	Thu Nov 07 15:00:57 2019 -0800
+++ b/hgext3rd/evolve/obshistory.py	Thu Nov 07 23:10:26 2019 -0800
@@ -195,7 +195,7 @@
 
             markerfm.end()
 
-            markerfm.plain(b'\n')
+            fm.plain(b'\n')
             fm.end()
 
             self.hunk[ctx.node()] = self.ui.popbuffer()