hgext/histedit.py
changeset 34470 6567002ae87e
parent 34029 6e6452bc441d
child 34471 1e37cb4da6f8
--- 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