Mercurial > hg
comparison mercurial/configitems.py @ 34239:344fd1fe237b
configitems: register the 'web.encoding' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:45:44 +0200 |
parents | a6c18628dff1 |
children | c97a750c28a5 |
comparison
equal
deleted
inserted
replaced
34238:a6c18628dff1 | 34239:344fd1fe237b |
---|---|
8 from __future__ import absolute_import | 8 from __future__ import absolute_import |
9 | 9 |
10 import functools | 10 import functools |
11 | 11 |
12 from . import ( | 12 from . import ( |
13 encoding, | |
13 error, | 14 error, |
14 ) | 15 ) |
15 | 16 |
16 def loadconfigtable(ui, extname, configtable): | 17 def loadconfigtable(ui, extname, configtable): |
17 """update config item known to the ui with the extension ones""" | 18 """update config item known to the ui with the extension ones""" |
616 default=True, | 617 default=True, |
617 ) | 618 ) |
618 coreconfigitem('web', 'description', | 619 coreconfigitem('web', 'description', |
619 default="", | 620 default="", |
620 ) | 621 ) |
622 coreconfigitem('web', 'encoding', | |
623 default=lambda: encoding.encoding, | |
624 ) | |
621 coreconfigitem('worker', 'backgroundclose', | 625 coreconfigitem('worker', 'backgroundclose', |
622 default=dynamicdefault, | 626 default=dynamicdefault, |
623 ) | 627 ) |
624 # Windows defaults to a limit of 512 open files. A buffer of 128 | 628 # Windows defaults to a limit of 512 open files. A buffer of 128 |
625 # should give us enough headway. | 629 # should give us enough headway. |