Mercurial > hg
comparison tests/test-config.t @ 42706:60789444acd6
config: fix fm.data() handling of defaultvalue
This is a follow-up patch to rHG51a2e3102db2. This moves
`fm.data()` out of the if block in `commands.config()`.
Differential Revision: https://phab.mercurial-scm.org/D6720
author | Navaneeth Suresh <navaneeths1998@gmail.com> |
---|---|
date | Wed, 07 Aug 2019 19:18:20 +0530 |
parents | 049b2ac3252e |
children | 242ad45b60b3 |
comparison
equal
deleted
inserted
replaced
42705:049b2ac3252e | 42706:60789444acd6 |
---|---|
55 Section.key=lower case | 55 Section.key=lower case |
56 | 56 |
57 $ hg showconfig Section -Tjson | 57 $ hg showconfig Section -Tjson |
58 [ | 58 [ |
59 { | 59 { |
60 "defaultvalue": null, | |
60 "name": "Section.KeY", | 61 "name": "Section.KeY", |
61 "source": "*.hgrc:*", (glob) | 62 "source": "*.hgrc:*", (glob) |
62 "value": "Case Sensitive" | 63 "value": "Case Sensitive" |
63 }, | 64 }, |
64 { | 65 { |
66 "defaultvalue": null, | |
65 "name": "Section.key", | 67 "name": "Section.key", |
66 "source": "*.hgrc:*", (glob) | 68 "source": "*.hgrc:*", (glob) |
67 "value": "lower case" | 69 "value": "lower case" |
68 } | 70 } |
69 ] | 71 ] |
75 "source": "*.hgrc:*", (glob) | 77 "source": "*.hgrc:*", (glob) |
76 "value": "Case Sensitive" | 78 "value": "Case Sensitive" |
77 } | 79 } |
78 ] | 80 ] |
79 $ hg showconfig -Tjson | tail -7 | 81 $ hg showconfig -Tjson | tail -7 |
80 }, | 82 { |
81 { | 83 "defaultvalue": null, |
82 "name": "*", (glob) | 84 "name": "*", (glob) |
83 "source": "*", (glob) | 85 "source": "*", (glob) |
84 "value": "*" (glob) | 86 "value": "*" (glob) |
85 } | 87 } |
86 ] | 88 ] |