Patchwork [02,of,13] configitems: register the 'commands.show.aliasprefix' config

login
register
mail settings
Submitter Boris Feld
Date Oct. 9, 2017, 8:21 a.m.
Message ID <1b9db6bb7fc2997f0dcd.1507537309@FB>
Download mbox | patch
Permalink /patch/24642/
State Accepted
Headers show

Comments

Boris Feld - Oct. 9, 2017, 8:21 a.m.
# HG changeset patch
# User Boris Feld <boris.feld@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

Patch

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):