Page MenuHomePhabricator

index: drop support for negative indexes into the index

Authored by martinvonz on Aug 1 2018, 2:47 PM.



I want index[i] to work for any valid revnum including -1 (as it
already does), and I also want len(index) to be the number of
revisions in the index (not counting the null revision), so it cannot
also support negative revision numbers other than -1 for nullid.

I didn't bother removing support for it from revlog v0.

Diff Detail

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Aug 1 2018, 2:47 PM
martinvonz updated this revision to Diff 9778.Aug 2 2018, 12:40 AM
This revision was automatically updated to reflect the committed changes.