Use [code] for diffstats in tracker messages

Mon, 01 Jun 2015 12:46:23 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Mon, 01 Jun 2015 12:46:23 +0300
changeset 142
247454178654
parent 141
506e951fd338
child 143
d86a81540a71

Use [code] for diffstats in tracker messages

hgpoll.py file | annotate | diff | comparison | revisions
--- 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.'
 

mercurial