changeset 47049:2a77c817d451 stable

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
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 27 Apr 2021 17:11:55 -0400
parents 03c73fc6f89a
children ce24a00fe7f0
files hgext/git/gitlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <= ? '