[PATCH 03 of 10] configitems: register the 'bugzilla.regexp' config

Yuya Nishihara yuya at tcha.org
Fri Jul 14 09:11:45 EDT 2017


On Wed, 12 Jul 2017 14:41:26 +0200, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld at octobus.net>
> # Date 1499414647 -7200
> #      Fri Jul 07 10:04:07 2017 +0200
> # Node ID 1ca312b6211d3bde677c53972abd95c4be45f8ff
> # Parent  f56a5222c189bad35178708eeba73f333691e148
> # EXP-Topic config.register.bugzilla
> configitems: register the 'bugzilla.regexp' config
> 
> diff -r f56a5222c189 -r 1ca312b6211d hgext/bugzilla.py
> --- a/hgext/bugzilla.py	Fri Jul 07 10:04:05 2017 +0200
> +++ b/hgext/bugzilla.py	Fri Jul 07 10:04:07 2017 +0200
> @@ -352,6 +352,9 @@
>  configitem('bugzilla', 'password',
>      default=None,
>  )
> +configitem('bugzilla', 'regexp',
> +    default=lambda: bugzilla._default_bug_re,
> +)

Perhaps we can instead move _default_bug_re to module.


More information about the Mercurial-devel mailing list