Submitter | Boris Feld |
---|---|
Date | Dec. 15, 2018, 3:10 p.m. |
Message ID | <36c68746763d6b93b00c.1544886655@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/37189/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c --- a/mercurial/cext/revlog.c +++ b/mercurial/cext/revlog.c @@ -227,6 +227,9 @@ static inline int64_t index_get_start(in 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;