Mercurial > evolve
changeset 3970:005a10537627
legacy: drop compat layer for "command"
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 18 Aug 2018 01:00:08 +0200 |
parents | e854bf1e703f |
children | 9f8b99b3d9b5 |
files | hgext3rd/evolve/legacy.py |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/legacy.py Sat Aug 18 00:59:44 2018 +0200 +++ b/hgext3rd/evolve/legacy.py Sat Aug 18 01:00:08 2018 +0200 @@ -36,11 +36,7 @@ # compat with hg < 4.6 from mercurial.util import makedate -if util.safehasattr(registrar, 'command'): - commandfunc = registrar.command -else: # compat with hg < 4.3 - from mercurial import cmdutil - commandfunc = cmdutil.command +commandfunc = registrar.command ##################################################################### ### Older format management ###