hgext/git/gitlog.py
branchstable
changeset 47050 ce24a00fe7f0
parent 47049 2a77c817d451
child 47052 f8fa7ec53517
--- a/hgext/git/gitlog.py	Tue Apr 27 17:11:55 2021 -0400
+++ b/hgext/git/gitlog.py	Tue Apr 27 17:54:08 2021 -0400
@@ -68,7 +68,8 @@
 
     def hasnode(self, n):
         t = self._db.execute(
-            'SELECT node FROM changelog WHERE node = ?', (n,)
+            'SELECT node FROM changelog WHERE node = ?',
+            (pycompat.sysstr(n),),
         ).fetchone()
         return t is not None