mercurial/scmutil.py
changeset 47041 a407fe56d6e8
parent 47012 d55b71393907
child 47128 bea4717415c0
--- a/mercurial/scmutil.py	Mon May 03 02:33:00 2021 +0200
+++ b/mercurial/scmutil.py	Fri Apr 30 03:09:16 2021 +0200
@@ -643,7 +643,7 @@
         except (ValueError, OverflowError, IndexError):
             pass
 
-        if len(symbol) == 40:
+        if len(symbol) == 2 * repo.nodeconstants.nodelen:
             try:
                 node = bin(symbol)
                 rev = repo.changelog.rev(node)