# HG changeset patch # User Matt Harbison # Date 2021-04-27 21:11:55 # 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 --git a/hgext/git/gitlog.py b/hgext/git/gitlog.py --- a/hgext/git/gitlog.py +++ b/hgext/git/gitlog.py @@ -147,7 +147,7 @@ class changelog(baselog): 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 <= ? '