log: make changesetformatter pass in changectx to formatter
authorYuya Nishihara <yuya@tcha.org>
Mon, 03 Sep 2018 21:01:47 +0900
changeset 39705 fa681452b249
parent 39704 aa647457df14
child 39706 030d558c6456
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.
mercurial/logcmdutil.py
tests/test-journal.t
--- 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