# HG changeset patch # User Matt Harbison # Date 1619557915 14400 # Node ID 2a77c817d45115e39bb756294e47e9919190a1aa # Parent 03c73fc6f89a367135de78b6d08805a2fdbe7068 git: use the correct type for stopping changelog.revs() The `tip` function returns a binary node, but the database is expecting an int. Differential Revision: https://phab.mercurial-scm.org/D10525 diff -r 03c73fc6f89a -r 2a77c817d451 hgext/git/gitlog.py --- a/hgext/git/gitlog.py Tue Apr 27 16:58:59 2021 -0400 +++ b/hgext/git/gitlog.py Tue Apr 27 17:11:55 2021 -0400 @@ -147,7 +147,7 @@ def revs(self, start=0, stop=None): if stop is None: - stop = self.tip() + stop = self.tiprev() t = self._db.execute( 'SELECT rev FROM changelog ' 'WHERE rev >= ? AND rev <= ? '