author | Boris Feld <boris.feld@octobus.net> |
Fri, 14 Dec 2018 17:24:44 +0100 | |
changeset 40962 | c6939b353ebd |
parent 40961 | b54727f82511 |
child 40963 | 2e305e54eae3 |
--- a/mercurial/cext/revlog.c Fri Dec 14 17:23:41 2018 +0100 +++ b/mercurial/cext/revlog.c Fri Dec 14 17:24:44 2018 +0100 @@ -261,6 +261,9 @@ static inline int index_get_length(indexObject *self, Py_ssize_t rev) { + if (rev == nullrev) { + return 0; + } if (rev >= self->length) { PyObject *tuple; PyObject *pylong;