Mercurial > hg-stable
comparison hgext/sqlitestore.py @ 42776:9f2189b6bf2a
config: add experimental argument to the config registrar
Until now, there are almost 28 config items which are considered as
`experimental` but, not present in the `experimental` section of
the registrar. This patch adds an `experimental` argument to the
config registrar to mark such config items.
Differential Revision: https://phab.mercurial-scm.org/D6728
Differential Revision: https://phab.mercurial-scm.org/D6746
author | Navaneeth Suresh <navaneeths1998@gmail.com> |
---|---|
date | Tue, 20 Aug 2019 18:35:16 +0300 |
parents | c9f3f4c8999a |
children | 5c2e8a661418 |
comparison
equal
deleted
inserted
replaced
42775:791791a1fd4e | 42776:9f2189b6bf2a |
---|---|
88 configtable = {} | 88 configtable = {} |
89 configitem = registrar.configitem(configtable) | 89 configitem = registrar.configitem(configtable) |
90 | 90 |
91 # experimental config: storage.sqlite.compression | 91 # experimental config: storage.sqlite.compression |
92 configitem('storage', 'sqlite.compression', | 92 configitem('storage', 'sqlite.compression', |
93 default='zstd' if zstd else 'zlib') | 93 default='zstd' if zstd else 'zlib', |
94 experimental=True) | |
94 | 95 |
95 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | 96 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
96 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 97 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
97 # be specifying the version(s) of Mercurial they are tested with, or | 98 # be specifying the version(s) of Mercurial they are tested with, or |
98 # leave the attribute unspecified. | 99 # leave the attribute unspecified. |