changeset 3971:9f8b99b3d9b5

topic: drop compat layer for `command` We dropped support for 4.2
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 18 Aug 2018 01:05:00 +0200
parents 005a10537627
children f715dcea5086
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py	Sat Aug 18 01:00:08 2018 +0200
+++ b/hgext3rd/topic/__init__.py	Sat Aug 18 01:05:00 2018 +0200
@@ -148,13 +148,8 @@
     topicmap,
 )
 
-if util.safehasattr(registrar, 'command'):
-    commandfunc = registrar.command
-else: # compat with hg < 4.3
-    commandfunc = cmdutil.command
-
 cmdtable = {}
-command = commandfunc(cmdtable)
+command = registrar.command(cmdtable)
 colortable = {'topic.active': 'green',
               'topic.list.troubledcount': 'red',
               'topic.list.headcount.multiple': 'yellow',