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

Boris Feld boris.feld at octobus.net
Mon Sep 11 13:31:48 UTC 2017


# HG changeset patch
# User Boris Feld <boris.feld at 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

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


More information about the Mercurial-devel mailing list