Mercurial > hg
diff hgext/git/gitlog.py @ 47045:846920d89476 stable
git: fix partial node matching
Looks like everything is meant to be a str here.
Differential Revision: https://phab.mercurial-scm.org/D10521
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 27 Apr 2021 00:26:12 -0400 |
parents | 048beb0167a7 |
children | 497cedcb6504 |
line wrap: on
line diff
--- a/hgext/git/gitlog.py Tue Apr 27 00:23:05 2021 -0400 +++ b/hgext/git/gitlog.py Tue Apr 27 00:26:12 2021 -0400 @@ -168,7 +168,8 @@ candidates = [ bin(x[0]) for x in self._db.execute( - 'SELECT node FROM changelog WHERE node LIKE ?', (id + b'%',) + 'SELECT node FROM changelog WHERE node LIKE ?', + (pycompat.sysstr(id + b'%'),), ) ] if nullhex.startswith(id):