[PATCH 02 of 13] configitems: register the 'commands.show.aliasprefix' config
Boris Feld
boris.feld at octobus.net
Mon Oct 9 04:21:49 EDT 2017
# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1507486569 -7200
# Sun Oct 08 20:16:09 2017 +0200
# Node ID 1b9db6bb7fc2997f0dcd286a768a45e5f65f288f
# Parent cdac8099d6c07e3d96e1c7c8fadab713f2111bd7
# EXP-Topic config.register
# Available At https://bitbucket.org/octobus/mercurial-devel/
# hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 1b9db6bb7fc2
configitems: register the 'commands.show.aliasprefix' config
diff -r cdac8099d6c0 -r 1b9db6bb7fc2 hgext/show.py
--- a/hgext/show.py Sun Oct 08 20:11:34 2017 +0200
+++ b/hgext/show.py Sun Oct 08 20:16:09 2017 +0200
@@ -51,6 +51,13 @@
cmdtable = {}
command = registrar.command(cmdtable)
+
+configtable = {}
+configitem = registrar.configitem(configtable)
+configitem('commands', 'show.aliasprefix',
+ default=list,
+)
+
revsetpredicate = registrar.revsetpredicate()
class showcmdfunc(registrar._funcregistrarbase):
More information about the Mercurial-devel
mailing list