compat: fix format_changeset_summary_fn() for hg <= 5.6

8 jobs for branch/default in 6 minutes and 28 seconds (queued for 2 seconds)