changeset 52628 | 3865451a5fab |
parent 52627 | 4dadaf300fe0 |
child 52629 | 7d2fc79a3e5a |
--- a/hgext/git/gitlog.py Fri Oct 04 10:51:44 2024 -0400 +++ b/hgext/git/gitlog.py Fri Oct 04 10:25:24 2024 -0400 @@ -43,9 +43,7 @@ self._db = db def __len__(self) -> int: - return int( - self._db.execute('SELECT COUNT(*) FROM changelog').fetchone()[0] - ) + return int(self._db.execute('SELECT ncommits FROM cache').fetchone()[0]) def files(self): raise NotImplementedError