changeset 6301:a649e0e36de7

exthelper: drop 4.7 compatibility for fa88170c10bb (^command vs helpbasic)
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 11 Aug 2022 11:08:45 +0400
parents f656daf884a4
children 6f865bfc5fb8
files hgext3rd/evolve/exthelper.py
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/exthelper.py	Thu Aug 11 18:03:49 2022 +0400
+++ b/hgext3rd/evolve/exthelper.py	Thu Aug 11 11:08:45 2022 +0400
@@ -83,14 +83,6 @@
         self._duckpunchers = []
         self.cmdtable = {}
         self.command = registrar.command(self.cmdtable)
-        if b'^init' in commands.table:
-            olddoregister = self.command._doregister
-
-            def _newdoregister(self, name, *args, **kwargs):
-                if kwargs.pop('helpbasic', False):
-                    name = r'^' + name
-                return olddoregister(self, name, *args, **kwargs)
-            self.command._doregister = _newdoregister
 
         self.configtable = {}
         self.configitem = registrar.configitem(self.configtable)