--- 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