From patchwork Tue Jun 27 13:00:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [6,of,6] blackbox: use a human readable version of the default From: Pierre-Yves David X-Patchwork-Id: 21775 Message-Id: <1f704b77446b3e22c435.1498568435@nodosa.octopoid.net> To: mercurial-devel@mercurial-scm.org Date: Tue, 27 Jun 2017 15:00:35 +0200 # HG changeset patch # User Pierre-Yves David # Date 1497811748 -7200 # Sun Jun 18 20:49:08 2017 +0200 # Node ID 1f704b77446b3e22c4352ebb85d51bfca837a3a7 # Parent 7f88de5db210f85d30a491a16d0117d8b1656643 # EXP-Topic config.register # Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ # hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 1f704b77446b blackbox: use a human readable version of the default Now that the default value is also converted we can use a human readable version for it. This will be useful if we start to automatically display the default config value in various place. diff --git a/hgext/blackbox.py b/hgext/blackbox.py --- a/hgext/blackbox.py +++ b/hgext/blackbox.py @@ -62,7 +62,7 @@ configtable = {} configitem = registrar.configitem(configtable) configitem('blackbox', 'maxsize', - default=1048576, + default='1 MB', ) lastui = None