hgext3rd/evolve/legacy.py
changeset 3970 005a10537627
parent 3514 498f782ccb4b
child 4266 a4a35fb44af3
equal deleted inserted replaced
3969:e854bf1e703f 3970:005a10537627
    34     from mercurial.utils.dateutil import makedate
    34     from mercurial.utils.dateutil import makedate
    35 except ImportError as e:
    35 except ImportError as e:
    36     # compat with hg < 4.6
    36     # compat with hg < 4.6
    37     from mercurial.util import makedate
    37     from mercurial.util import makedate
    38 
    38 
    39 if util.safehasattr(registrar, 'command'):
    39 commandfunc = registrar.command
    40     commandfunc = registrar.command
       
    41 else: # compat with hg < 4.3
       
    42     from mercurial import cmdutil
       
    43     commandfunc = cmdutil.command
       
    44 
    40 
    45 #####################################################################
    41 #####################################################################
    46 ### Older format management                                       ###
    42 ### Older format management                                       ###
    47 #####################################################################
    43 #####################################################################
    48 
    44