# HG changeset patch # User Boris Feld <boris.f...@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): _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel