Mercurial > hg-stable
changeset 40776:8edca70dc951
revlog: update the documentation for `trim_endidx`
The function role drifted since the function was commented.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 26 Nov 2018 00:23:12 +0100 |
parents | 959130631de3 |
children | 415735bfcf2b |
files | mercurial/cext/revlog.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cext/revlog.c Mon Nov 26 00:21:09 2018 +0100 +++ b/mercurial/cext/revlog.c Mon Nov 26 00:23:12 2018 +0100 @@ -1086,7 +1086,7 @@ return (end_offset - start_offset) + (int64_t)end_size; } -/* returns revs[startidx:endidx] without empty trailing revs */ +/* returns endidx so that revs[startidx:endidx] has no empty trailing revs */ static Py_ssize_t trim_endidx(indexObject *self, const Py_ssize_t *revs, Py_ssize_t startidx, Py_ssize_t endidx) {