git: use the correct type for stopping changelog.revs() stable
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 27 Apr 2021 17:11:55 -0400
branchstable
changeset 47020 2a77c817d451
parent 47019 03c73fc6f89a
child 47021 ce24a00fe7f0
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
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 <= ? '