Mercurial > hg
changeset 34777:bb2525871d95
configitems: register the 'exdiff.opts.*' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Sat, 14 Oct 2017 00:33:57 +0200 |
parents | 48d2b396cf6c |
children | bf138446ac2f |
files | hgext/extdiff.py |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/extdiff.py Sat Oct 14 00:30:14 2017 +0200 +++ b/hgext/extdiff.py Sat Oct 14 00:33:57 2017 +0200 @@ -84,6 +84,15 @@ cmdtable = {} command = registrar.command(cmdtable) + +configtable = {} +configitem = registrar.configitem(configtable) + +configitem('extdiff', r'opts\..*', + default='', + generic=True, +) + # 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 @@ -369,7 +378,7 @@ path = util.findexe(cmd) if path is None: path = filemerge.findexternaltool(ui, cmd) or cmd - diffopts = ui.config('extdiff', 'opts.' + cmd, '') + diffopts = ui.config('extdiff', 'opts.' + cmd) cmdline = util.shellquote(path) if diffopts: cmdline += ' ' + diffopts