mercurial/dispatch.py
changeset 45882 8cc9e7f762d6
parent 45881 bb1b7a5bc96b
child 45884 98399dd1b96c
--- a/mercurial/dispatch.py	Thu Nov 19 09:19:44 2020 -0800
+++ b/mercurial/dispatch.py	Thu Nov 19 12:20:26 2020 -0800
@@ -484,10 +484,10 @@
         except (error.UnknownCommand, error.Abort):
             suggested = False
             if inst.all_commands:
-                sim = scmutil.getsimilar(inst.all_commands, inst.command)
+                sim = error.getsimilar(inst.all_commands, inst.command)
                 if sim:
                     ui.warn(nocmdmsg)
-                    ui.warn(b"(%s)\n" % scmutil.similarity_hint(sim))
+                    ui.warn(b"(%s)\n" % error.similarity_hint(sim))
                     suggested = True
             if not suggested:
                 ui.warn(nocmdmsg)