diff mercurial/exthelper.py @ 41072:70ca0e846d25

exthelper: reintroduce the ability to register templates Same mechanism as revsets earlier in this series. The LFS extension is updated to provide test coverage. This also seems to make the test failure around issue6033 mentioned in 0a7f582f6f1f much less regular on Windows.
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 27 Dec 2018 21:55:22 -0500
parents 0358cca1dccf
children 8f40e21ca842
line wrap: on
line diff
--- a/mercurial/exthelper.py	Thu Dec 27 21:46:03 2018 -0500
+++ b/mercurial/exthelper.py	Thu Dec 27 21:55:22 2018 -0500
@@ -41,6 +41,7 @@
         self.configtable = {}
         self.configitem = registrar.configitem(self.configtable)
         self.revsetpredicate = registrar.revsetpredicate()
+        self.templatekeyword = registrar.templatekeyword()
 
     def merge(self, other):
         self._uicallables.extend(other._uicallables)
@@ -48,6 +49,7 @@
         self._extcallables.extend(other._extcallables)
         self._repocallables.extend(other._repocallables)
         self.revsetpredicate._table.update(other.revsetpredicate._table)
+        self.templatekeyword._table.update(other.templatekeyword._table)
         self._commandwrappers.extend(other._commandwrappers)
         self._extcommandwrappers.extend(other._extcommandwrappers)
         self._functionwrappers.extend(other._functionwrappers)