hgext/show.py
changeset 37709 7b2955624777
parent 37708 8e8541610d85
child 40293 c303d65d2e34
--- a/hgext/show.py	Fri Apr 13 10:36:03 2018 -0700
+++ b/hgext/show.py	Sat Apr 14 00:13:08 2018 -0700
@@ -29,7 +29,6 @@
 
 from mercurial.i18n import _
 from mercurial.node import (
-    hex,
     nullrev,
 )
 from mercurial import (
@@ -448,8 +447,8 @@
     if not revs:
         return minlen
     cl = repo.changelog
-    return max(len(scmutil.shortesthexnodeidprefix(repo, hex(cl.node(r)),
-                                                   minlen)) for r in revs)
+    return max(len(scmutil.shortesthexnodeidprefix(repo, cl.node(r), minlen))
+               for r in revs)
 
 # Adjust the docstring of the show command so it shows all registered views.
 # This is a bit hacky because it runs at the end of module load. When moved