Mercurial > evolve
comparison hgext3rd/topic/__init__.py @ 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 | 47dd383a9955 |
children | 0a05d1b98ccc |
comparison
equal
deleted
inserted
replaced
3970:005a10537627 | 3971:9f8b99b3d9b5 |
---|---|
146 revset as topicrevset, | 146 revset as topicrevset, |
147 stack, | 147 stack, |
148 topicmap, | 148 topicmap, |
149 ) | 149 ) |
150 | 150 |
151 if util.safehasattr(registrar, 'command'): | |
152 commandfunc = registrar.command | |
153 else: # compat with hg < 4.3 | |
154 commandfunc = cmdutil.command | |
155 | |
156 cmdtable = {} | 151 cmdtable = {} |
157 command = commandfunc(cmdtable) | 152 command = registrar.command(cmdtable) |
158 colortable = {'topic.active': 'green', | 153 colortable = {'topic.active': 'green', |
159 'topic.list.troubledcount': 'red', | 154 'topic.list.troubledcount': 'red', |
160 'topic.list.headcount.multiple': 'yellow', | 155 'topic.list.headcount.multiple': 'yellow', |
161 'topic.list.behindcount': 'cyan', | 156 'topic.list.behindcount': 'cyan', |
162 'topic.list.behinderror': 'red', | 157 'topic.list.behinderror': 'red', |