HomePhabricator

index: replace insert(-1, e) method by append(e) method

Authored by martinvonz.

Description

index: replace insert(-1, e) method by append(e) method

I want to make index[len(index) - 1] be the tip revision, not null
revision as it is today. insert(-1, e) will then make little
sense. Since insert() currently requires the first argument to be -1,
it seems simpler to replace it by a method that allows insertion only
at the end.

Note that revlogoldindex already has this method (by virtue of
extending list).

Differential Revision: https://phab.mercurial-scm.org/D4021

Details

Committed
martinvonzAug 1 2018, 1:57 PM
Differential Revision
D4021: index: replace insert(-1, e) method by append(e) method
Parents
rHGda5a666f0f78: pure: create type for revlog v0 index
Branches
Unknown
Tags
Unknown