This is an archive of the discontinued Mercurial Phabricator instance.

index: return False for "len(index) in index"
ClosedPublic

Authored by martinvonz on Aug 5 2018, 2:33 AM.

Details

Summary

Since we no longer accept index[len(index)], we should clearly make
"len(index) in index" return False. This should have been part of
a3dacabd476b (index: don't allow index[len(index)] to mean nullid,
2018-07-20)

Diff Detail

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