blackbox: use a human readable version of the default
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 18 Jun 2017 20:49:08 +0200
changeset 33136 59c135bb31bc
parent 33135 0a638f37f2d2
child 33137 99ce2f586cd4
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.
hgext/blackbox.py
--- a/hgext/blackbox.py	Sat Jun 17 13:21:06 2017 +0200
+++ b/hgext/blackbox.py	Sun Jun 18 20:49:08 2017 +0200
@@ -62,7 +62,7 @@
 configitem = registrar.configitem(configtable)
 
 configitem('blackbox', 'maxsize',
-    default=1048576,
+    default='1 MB',
 )
 
 lastui = None