# HG changeset patch # User Boris Feld # Date 2017-06-30 01:42:37 # Node ID 6567002ae87ed8e71143062b4ef76c659ecb172f # Parent 61275d0f6157707063556fe2085bc81f435e3703 configitems: register the 'histedit.defaultrev' config diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -188,6 +188,7 @@ from mercurial.i18n import _ from mercurial import ( bundle2, cmdutil, + configitems, context, copies, destutil, @@ -212,6 +213,12 @@ release = lock.release 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