Patchwork [3,of,5] journal: do not pass in repolookuperror string to template (BC)

login
register
mail settings
Submitter Yuya Nishihara
Date Sept. 15, 2018, 1:54 a.m.
Message ID <927a315f7c8e3a0db390.1536976447@mimosa>
Download mbox | patch
Permalink /patch/34664/
State New
Headers show

Comments

Yuya Nishihara - Sept. 15, 2018, 1:54 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1535928830 -32400
#      Mon Sep 03 07:53:50 2018 +0900
# Node ID 927a315f7c8e3a0db390488018a3b3b2c47f3d83
# Parent  3e2db5332d5559218155d02bd6f6d9c7fc245c08
journal: do not pass in repolookuperror string to template (BC)

This doesn't look like data, but a warning message.

Patch

diff --git a/hgext/journal.py b/hgext/journal.py
--- a/hgext/journal.py
+++ b/hgext/journal.py
@@ -514,7 +514,7 @@  def journal(ui, repo, *args, **opts):
                     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()