changeset 39721:fa681452b249

log: make changesetformatter pass in changectx to formatter It wasn't necessary before, but user templates may have keywords that aren't filled in by the changesetformatter.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 03 Sep 2018 21:01:47 +0900
parents aa647457df14
children 030d558c6456
files mercurial/logcmdutil.py tests/test-journal.t
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/logcmdutil.py	Mon Sep 03 20:56:53 2018 +0900
+++ b/mercurial/logcmdutil.py	Mon Sep 03 21:01:47 2018 +0900
@@ -326,6 +326,7 @@
         fm = self._fm
         fm.startitem()
 
+        fm.context(ctx=ctx)
         # TODO: maybe this should be wdirrev/wdirnode?
         rev = ctx.rev()
         if rev is None:
--- a/tests/test-journal.t	Mon Sep 03 20:56:53 2018 +0900
+++ b/tests/test-journal.t	Mon Sep 03 21:01:47 2018 +0900
@@ -279,13 +279,13 @@
    children: 
   command: up 0
    rev: 0
-   children: 
+   children: 1:1e6c11564562
   command: commit -Aqm b
    rev: 1
    children: 
   command: commit -Aqm a
    rev: 0
-   children: 
+   children: 1:1e6c11564562
 
 Test for behaviour on unexpected storage version information