dc481ce24b60 — Sascha Nemecek 2 years ago
fix error with hg versions <4.3 (regression from commit:4dddc56)
1 files changed, 2 insertions(+), 2 deletions(-)

M prompt.py
M prompt.py +2 -2
@@ 20,12 20,12 @@ from mercurial import extensions, comman
 from mercurial.i18n import _
 from mercurial.node import hex, short
 
-# command registration moved into `registrar` module in v3.7.
+# command registration moved into `registrar` module in v4.3.
 cmdtable = {}
 try:
     from mercurial import registrar
     command = registrar.command(cmdtable)
-except ImportError:
+except (ImportError, AttributeError) as e:
     command = cmdutil.command(cmdtable)
 
 # `revrange' has been moved into module `scmutil' since v1.9.