# HG changeset patch # User Teemu Piippo # Date 1433151983 -10800 # Node ID 247454178654b843661730abcadeebcc4c067754 # Parent 506e951fd3383395af4cfbcc062cad0d07e39c52 Use [code] for diffstats in tracker messages diff -r 506e951fd338 -r 247454178654 hgpoll.py --- a/hgpoll.py Sun May 17 20:42:32 2015 +0300 +++ b/hgpoll.py Mon Jun 01 12:46:23 2015 +0300 @@ -240,8 +240,8 @@ commit_diffstat = repo.hg_command ('diff', '--change', cset, '--stat') if len(commit_diffstat) > 0: - # commit_diffstat = 'Changes in files:\n[code]\n' + commit_diffstat + '\n[/code]' - commit_diffstat = 'Changes in files:\n' + bbcodify(commit_diffstat) + commit_diffstat = 'Changes in files:\n[code]\n' + commit_diffstat + '\n[/code]' + # commit_diffstat = 'Changes in files:\n' + bbcodify(commit_diffstat) else: commit_diffstat = 'No changes in files.'