--- a/hgext/git/gitutil.py Tue May 31 02:47:22 2022 +0200
+++ b/hgext/git/gitutil.py Tue May 31 03:06:05 2022 +0200
@@ -1,8 +1,6 @@
"""utilities to assist in working with pygit2"""
-from mercurial.node import bin, hex, sha1nodeconstants
-
-from mercurial import pycompat
+from mercurial.node import bin, sha1nodeconstants
pygit2_module = None
@@ -38,7 +36,7 @@
pygit2 and sqlite both need nodes as strings, not bytes.
"""
assert len(n) == 20
- return pycompat.sysstr(hex(n))
+ return n.hex()
def fromgitnode(n):