--- a/mercurial/scmutil.py Thu Nov 19 12:20:26 2020 -0800
+++ b/mercurial/scmutil.py Thu Nov 19 11:23:59 2020 -0800
@@ -150,13 +150,7 @@
)
else:
write(_(b"hg: parse error: %s\n") % inst.message)
- if isinstance(inst, error.UnknownIdentifier):
- # make sure to check fileset first, as revset can invoke fileset
- similar = error.getsimilar(inst.symbols, inst.function)
- hint = error.similarity_hint(similar)
- if hint:
- write(b"(%s)\n" % hint)
- elif inst.hint:
+ if inst.hint:
write(_(b"(%s)\n") % inst.hint)