equal
deleted
inserted
replaced
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 |