Patchwork [6,of,9] configitems: register the 'bugzilla.notify' config

login
register
mail settings
Submitter Boris Feld
Date July 15, 2017, 6:41 p.m.
Message ID <0320a1820f8fcea0709d.1500144069@FB>
Download mbox | patch
Permalink /patch/22410/
State Accepted
Headers show

Comments

Boris Feld - July 15, 2017, 6:41 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498786213 -7200
#      Fri Jun 30 03:30:13 2017 +0200
# Node ID 0320a1820f8fcea0709ded92b788ffdb438f1e20
# Parent  6a5f9dfdcb30a627d914d4b9fdbe767231253288
# EXP-Topic config.register.special-case
configitems: register the 'bugzilla.notify' config

Patch

diff -r 6a5f9dfdcb30 -r 0320a1820f8f hgext/bugzilla.py
--- a/hgext/bugzilla.py	Fri Jun 30 03:44:56 2017 +0200
+++ b/hgext/bugzilla.py	Fri Jun 30 03:30:13 2017 +0200
@@ -301,6 +301,7 @@ 
 from mercurial.node import short
 from mercurial import (
     cmdutil,
+    configitems,
     error,
     mail,
     registrar,
@@ -352,6 +353,9 @@ 
 configitem('bugzilla', 'host',
     default='localhost',
 )
+configitem('bugzilla', 'notify',
+    default=configitems.dynamicdefault,
+)
 configitem('bugzilla', 'password',
     default=None,
 )