diff --git a/hgext/git/gitlog.py b/hgext/git/gitlog.py --- a/hgext/git/gitlog.py +++ b/hgext/git/gitlog.py @@ -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