Mercurial > hg-stable
changeset 34471:6567002ae87e
configitems: register the 'histedit.defaultrev' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:42:37 +0200 |
parents | 61275d0f6157 |
children | 1e37cb4da6f8 |
files | hgext/histedit.py |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/histedit.py Fri Jun 30 03:44:30 2017 +0200 +++ b/hgext/histedit.py Fri Jun 30 03:42:37 2017 +0200 @@ -188,6 +188,7 @@ from mercurial import ( bundle2, cmdutil, + configitems, context, copies, destutil, @@ -212,6 +213,12 @@ cmdtable = {} command = registrar.command(cmdtable) +configtable = {} +configitem = registrar.configitem(configtable) +configitem('histedit', 'defaultrev', + default=configitems.dynamicdefault, +) + # 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