Mercurial > hg
comparison hgext/git/gitlog.py @ 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 |
comparison
equal
deleted
inserted
replaced
47048:03c73fc6f89a | 47049:2a77c817d451 |
---|---|
145 return bin(t[0]) | 145 return bin(t[0]) |
146 return nullid | 146 return nullid |
147 | 147 |
148 def revs(self, start=0, stop=None): | 148 def revs(self, start=0, stop=None): |
149 if stop is None: | 149 if stop is None: |
150 stop = self.tip() | 150 stop = self.tiprev() |
151 t = self._db.execute( | 151 t = self._db.execute( |
152 'SELECT rev FROM changelog ' | 152 'SELECT rev FROM changelog ' |
153 'WHERE rev >= ? AND rev <= ? ' | 153 'WHERE rev >= ? AND rev <= ? ' |
154 'ORDER BY REV ASC', | 154 'ORDER BY REV ASC', |
155 (start, stop), | 155 (start, stop), |