Mercurial > public > mercurial-scm > hg
diff tests/test-parseindex2.py @ 38852:a3dacabd476b
index: don't allow index[len(index)] to mean nullid
Now everything else has been cleaned up and we can drop support for
getting the nullid from the end of the index (from *past* the end
actually, since we reduced the length in the previous patch).
Differential Revision: https://phab.mercurial-scm.org/D4023
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 20 Jul 2018 14:36:42 -0700 |
parents | 3de58f50afa2 |
children | 01966d45b45e |
line wrap: on
line diff
--- a/tests/test-parseindex2.py Fri Jul 20 08:10:32 2018 -0700 +++ b/tests/test-parseindex2.py Fri Jul 20 14:36:42 2018 -0700 @@ -61,9 +61,6 @@ e[0] = offset_type(0, type) index[0] = tuple(e) - # add the magic null revision at -1 - index.append((0, 0, 0, -1, -1, -1, -1, nullid)) - return index, cache data_inlined = (