# HG changeset patch # User Martin von Zweigbergk # Date 1516390555 28800 # Node ID 963a611b2f396d507b5784c0ec1905e134b0c898 # Parent de32acb24949c0e3633de373d1c6c8c814faa804 scmutil: 0-pad transaction report callback category Before this patch, the transaction name was '%2i-txnreport', which means the first one would be ' 0-txnreport'. It seems more intuitive for sorting purposes (the callbacks are called in lexicographical order) to make it 0-padded. Differential Revision: https://phab.mercurial-scm.org/D1917 diff -r de32acb24949 -r 963a611b2f39 mercurial/scmutil.py --- a/mercurial/scmutil.py Wed Jan 17 16:01:06 2018 +0100 +++ b/mercurial/scmutil.py Fri Jan 19 11:35:55 2018 -0800 @@ -1247,7 +1247,7 @@ if filtername: repo = repo.filtered(filtername) func(repo, tr) - newcat = '%2i-txnreport' % len(categories) + newcat = '%02i-txnreport' % len(categories) otr.addpostclose(newcat, wrapped) categories.append(newcat) return wrapped