Mercurial > public > mercurial-scm > hg-stable
diff tests/test-config.t @ 43336:a71578ec6257 stable
config: add support for defaultvalue of list of printable elements
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 27 Oct 2019 12:36:52 +0900 |
parents | 242ad45b60b3 |
children | 7e20b705da5b |
line wrap: on
line diff
--- a/tests/test-config.t Sun Oct 27 12:30:59 2019 +0900 +++ b/tests/test-config.t Sun Oct 27 12:36:52 2019 +0900 @@ -186,6 +186,7 @@ $ hg config --config commands.show.aliasprefix= commands -Tjson [ { + "defaultvalue": [], "name": "commands.show.aliasprefix", "source": "--config", "value": "" @@ -193,7 +194,7 @@ ] $ hg config --config commands.show.aliasprefix= commands -T'json(defaultvalue)' [ - {"defaultvalue": ""} + {"defaultvalue": []} ] $ hg config --config commands.show.aliasprefix= commands -T'{defaultvalue}\n' @@ -203,6 +204,7 @@ $ hg config --config progress.format= progress -Tjson [ { + "defaultvalue": ["topic", "bar", "number", "estimate"], "name": "progress.format", "source": "--config", "value": "" @@ -210,10 +212,10 @@ ] $ hg config --config progress.format= progress -T'json(defaultvalue)' [ - {"defaultvalue": ""} + {"defaultvalue": ["topic", "bar", "number", "estimate"]} ] $ hg config --config progress.format= progress -T'{defaultvalue}\n' - + topic bar number estimate int