# HG changeset patch # User Pierre-Yves David # Date 1534547100 -7200 # Node ID 9f8b99b3d9b587b7e39cc8f92245574bb73934c8 # Parent 005a10537627aad0a6b2c8588297b4386137041c topic: drop compat layer for `command` We dropped support for 4.2 diff -r 005a10537627 -r 9f8b99b3d9b5 hgext3rd/topic/__init__.py --- 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',