[PATCH] configitems: register the 'win32mbcs.encoding' config
Yuya Nishihara
yuya at tcha.org
Tue Sep 12 14:26:37 UTC 2017
On Mon, 11 Sep 2017 15:50:32 +0200, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld at octobus.net>
> # Date 1498787154 -7200
> # ven. juin 30 03:45:54 2017 +0200
> # Node ID 34ae7b710192ced203102f80f6a1f73e42341d3b
> # Parent a763c891f36e55f4869f443c220227d1da747d18
> # EXP-Topic config.register.win32mbcs
> configitems: register the 'win32mbcs.encoding' config
>
> diff -r a763c891f36e -r 34ae7b710192 hgext/win32mbcs.py
> --- a/hgext/win32mbcs.py mar. sept. 05 15:18:45 2017 -0700
> +++ b/hgext/win32mbcs.py ven. juin 30 03:45:54 2017 +0200
> @@ -54,6 +54,7 @@
> encoding,
> error,
> pycompat,
> + registrar,
> )
>
> # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
> @@ -62,6 +63,13 @@
> # leave the attribute unspecified.
> testedwith = 'ships-with-hg-core'
>
> +configtable = {}
> +configitem = registrar.configitem(configtable)
> +
> +configitem('win32mbcs', 'encoding',
> + default=encoding.encoding,
encoding.encoding may be updated by --encoding option. Perhaps we'll need to
delay the resolution.
More information about the Mercurial-devel
mailing list