changeset 6307:554edfc7c55a

evolve: remove 4.7 compatibility (help system)
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 11 Aug 2022 10:39:34 +0400
parents 075f365a53cf
children 1d5cb87fbce9
files hgext3rd/evolve/__init__.py
diffstat 1 files changed, 4 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/__init__.py	Mon Aug 15 18:50:24 2022 +0400
+++ b/hgext3rd/evolve/__init__.py	Thu Aug 11 10:39:34 2022 +0400
@@ -1130,16 +1130,10 @@
         if entry[0] == b"evolution":
             break
     else:
-        if util.safehasattr(help, 'TOPIC_CATEGORY_CONCEPTS'):
-            help.helptable.append(([b"evolution"],
-                                   _(b"Safely Rewriting History"),
-                                   _helploader,
-                                   help.TOPIC_CATEGORY_CONCEPTS))
-        else:
-            # hg <= 4.7 (c303d65d2e34)
-            help.helptable.append(([b"evolution"],
-                                   _(b"Safely Rewriting History"),
-                                   _helploader))
+        help.helptable.append(([b"evolution"],
+                               _(b"Safely Rewriting History"),
+                               _helploader,
+                               help.TOPIC_CATEGORY_CONCEPTS))
         help.helptable.sort()
 
 evolvestateversion = 0