[PATCH 3 of 6] largefiles: port configitems to exthelper

Yuya Nishihara yuya at tcha.org
Thu Dec 27 06:29:09 EST 2018


On Wed, 26 Dec 2018 16:33:35 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1545599773 18000
> #      Sun Dec 23 16:16:13 2018 -0500
> # Node ID be536e648c4f96fa625a6222e9c50d45fee38bb5
> # Parent  04b6bbd552360d479d44e956d1e0c201d19f15ef
> largefiles: port configitems to exthelper

>  from mercurial import (
> +    configitems,
> +    exthelper,
>      hg,
>      localrepo,
>      registrar,
> @@ -126,19 +128,19 @@ from . import (
>  # leave the attribute unspecified.
>  testedwith = 'ships-with-hg-core'
>  
> -configtable = {}
> -configitem = registrar.configitem(configtable)
> +eh = exthelper.exthelper()
>  
> -configitem('largefiles', 'minsize',
> -    default=configitem.dynamicdefault,
> +eh.configitem('largefiles', 'minsize',
> +    default=configitems.dynamicdefault,

Nit: eh.configitem.dynamicdefault ?


More information about the Mercurial-devel mailing list