Mercurial > hg
diff mercurial/cext/revlog.c @ 43582:ae5e39512ca0
revlog: delete references to deleted nullid sentinel value
We stopped keeping the nullid in the index in 781b2720d2ac (index:
don't include nullid in len(), 2018-07-20). I forgot to update some
comments about it.
Differential Revision: https://phab.mercurial-scm.org/D7366
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 08 Nov 2019 14:35:53 -0800 |
parents | b56de57c45ce |
children | 49fa0b31ee1d |
line wrap: on
line diff
--- a/mercurial/cext/revlog.c Sun Nov 10 18:15:54 2019 +0100 +++ b/mercurial/cext/revlog.c Fri Nov 08 14:35:53 2019 -0800 @@ -62,10 +62,9 @@ * This class has two behaviors. * * When used in a list-like way (with integer keys), we decode an - * entry in a RevlogNG index file on demand. Our last entry is a - * sentinel, always a nullid. We have limited support for + * entry in a RevlogNG index file on demand. We have limited support for * integer-keyed insert and delete, only at elements right before the - * sentinel. + * end. * * With string keys, we lazily perform a reverse mapping from node to * rev, using a base-16 trie. @@ -2466,7 +2465,7 @@ /* * Delete a numeric range of revs, which must be at the end of the - * range, but exclude the sentinel nullid entry. + * range. */ static int index_slice_del(indexObject *self, PyObject *item) {