This is an archive of the discontinued Mercurial Phabricator instance.

revlog: don't include trailing nullrev in revlog.revs(stop=len(revlog))
ClosedPublic

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

Details

Summary

This was an odd side effect of the nullid entry that's in the
index. The existing callers (mostly repair.py) seem to have handled it
fine. It doesn't seem intentional, and it's pretty surprising, so
let's remove that surprise.

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.