hgext/journal.py
changeset 39720 aa647457df14
parent 39719 2fb88fa2b337
child 40293 c303d65d2e34
--- a/hgext/journal.py	Mon Sep 03 07:53:50 2018 +0900
+++ b/hgext/journal.py	Mon Sep 03 20:56:53 2018 +0900
@@ -508,7 +508,11 @@
         fm.write('command', '  %s\n', entry.command)
 
         if opts.get("commits"):
-            displayer = logcmdutil.changesetdisplayer(ui, repo, opts)
+            if fm.isplain():
+                displayer = logcmdutil.changesetdisplayer(ui, repo, opts)
+            else:
+                displayer = logcmdutil.changesetformatter(
+                    ui, repo, fm.nested('changesets'), diffopts=opts)
             for hash in entry.newhashes:
                 try:
                     ctx = repo[hash]