Mercurial > hgrepos > Python > libs > ConfigMix
comparison tests/data/conf1.ini @ 251:2a8dcab2de8c
Do not implicitely convert a configuration value to text if the value is the result of just a variable expansion.
This is technically a breaking change. But no known client code uses the old
behaviour.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 07 Jul 2020 22:21:27 +0200 |
| parents | 7e6ec99d5ff5 |
| children |
comparison
equal
deleted
inserted
replaced
| 250:ff964825a75a | 251:2a8dcab2de8c |
|---|---|
| 8 key4 = :bool:yes | 8 key4 = :bool:yes |
| 9 key5 = :bool:off | 9 key5 = :bool:off |
| 10 key6 = :int:0o377 | 10 key6 = :int:0o377 |
| 11 __comment2 = Comment no 2 | 11 __comment2 = Comment no 2 |
| 12 key7 = Umlaute: ÄÖÜäöüß | 12 key7 = Umlaute: ÄÖÜäöüß |
| 13 # Just expand to an int | |
| 14 key100 = {{key2}} | |
| 15 # Convert to a string because not alone | |
| 16 key101 = the {{key2}} value | |
| 17 # Recursion does not change the type also | |
| 18 key102 = {{key100}} | |
| 19 # Not alone -> string | |
| 20 key103 = {{key100}}{{key2}} |
