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.
--- 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