journal: do not pass in repolookuperror string to template (BC)
authorYuya Nishihara <yuya@tcha.org>
Mon, 03 Sep 2018 07:53:50 +0900
changeset 39703 2fb88fa2b337
parent 39702 a7b91509776d
child 39704 aa647457df14
journal: do not pass in repolookuperror string to template (BC) This doesn't look like data, but a warning message.
hgext/journal.py
--- a/hgext/journal.py	Mon Sep 03 07:52:24 2018 +0900
+++ b/hgext/journal.py	Mon Sep 03 07:53:50 2018 +0900
@@ -514,7 +514,7 @@
                     ctx = repo[hash]
                     displayer.show(ctx)
                 except error.RepoLookupError as e:
-                    fm.write('repolookuperror', "%s\n\n", pycompat.bytestr(e))
+                    fm.plain("%s\n\n" % pycompat.bytestr(e))
             displayer.close()
 
     fm.end()