diff tests/test-config.t @ 42672:51a2e3102db2

config: add defaultvalue template keyword This patch tries to fix one of the issues mentioned in issue6014. This adds a new `defaultvalue` template keyword to be used with `hg showconfig` to get the default value of the config item. Differential Revision: https://phab.mercurial-scm.org/D6704
author Navaneeth Suresh <navaneeths1998@gmail.com>
date Thu, 01 Aug 2019 22:03:52 +0530
parents edbcf5b239f9
children 049b2ac3252e
line wrap: on
line diff
--- a/tests/test-config.t	Thu Aug 01 12:23:07 2019 -0400
+++ b/tests/test-config.t	Thu Aug 01 22:03:52 2019 +0530
@@ -70,6 +70,7 @@
   $ hg showconfig Section.KeY -Tjson
   [
    {
+    "defaultvalue": "None",
     "name": "Section.KeY",
     "source": "*.hgrc:*", (glob)
     "value": "Case Sensitive"
@@ -102,6 +103,7 @@
   $ hg config empty.source -Tjson
   [
    {
+    "defaultvalue": "None",
     "name": "empty.source",
     "source": "",
     "value": "value"