# HG changeset patch
# User Boris Feld <boris.f...@octobus.net>
# Date 1498786957 -7200
#      Fri Jun 30 03:42:37 2017 +0200
# Node ID a1d86c040bd28d7f96e107d55e7a0cdda2bd63ec
# Parent  2fd06499dc8e6a5a784b1334b925c289d7b54e4e
# EXP-Topic config.register.histedit
configitems: register the 'histedit.defaultrev' config

diff -r 2fd06499dc8e -r a1d86c040bd2 hgext/histedit.py
--- a/hgext/histedit.py Thu Aug 24 18:40: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
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to