# HG changeset patch # User Martin von Zweigbergk # Date 2018-01-19 19:35:55 # 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 --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -1247,7 +1247,7 @@ def registersummarycallback(repo, otr, t 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