Patchwork [1,of,6] configitems: register the 'patchbomb.bundletype' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 11, 2017, 1:31 p.m.
Message ID <f6e0ac2346b8b5dc5456.1505136708@FB>
Download mbox | patch
Permalink /patch/23768/
State Accepted
Headers show

Comments

Boris Feld - Sept. 11, 2017, 1:31 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498787017 -7200
#      ven. juin 30 03:43:37 2017 +0200
# Node ID f6e0ac2346b8b5dc54560eb5e9b235dcbec9c3b2
# Parent  a763c891f36e55f4869f443c220227d1da747d18
# EXP-Topic config.register.patchbomb
configitems: register the 'patchbomb.bundletype' config
Yuya Nishihara - Sept. 12, 2017, 2:25 p.m.
On Mon, 11 Sep 2017 15:31:48 +0200, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld@octobus.net>
> # Date 1498787017 -7200
> #      ven. juin 30 03:43:37 2017 +0200
> # Node ID f6e0ac2346b8b5dc54560eb5e9b235dcbec9c3b2
> # Parent  a763c891f36e55f4869f443c220227d1da747d18
> # EXP-Topic config.register.patchbomb
> configitems: register the 'patchbomb.bundletype' config

Queued, thanks.

Patch

diff -r a763c891f36e -r f6e0ac2346b8 hgext/patchbomb.py
--- a/hgext/patchbomb.py	mar. sept. 05 15:18:45 2017 -0700
+++ b/hgext/patchbomb.py	ven. juin 30 03:43:37 2017 +0200
@@ -99,6 +99,14 @@ 
 
 cmdtable = {}
 command = registrar.command(cmdtable)
+
+configtable = {}
+configitem = registrar.configitem(configtable)
+
+configitem('patchbomb', 'bundletype',
+    default=None,
+)
+
 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
 # be specifying the version(s) of Mercurial they are tested with, or