This is an archive of the discontinued Mercurial Phabricator instance.

revlog: change addrevision to return the new revision, not node
ClosedPublic

Authored by joerg.sonnenberger on Jan 26 2021, 9:10 PM.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

Does this have any influence on performance?

I didn't measure it, but I don't expect it to make a difference. rev->node is the cheap mapping in all cases, it is the reverse that can be expensive.

Alphare accepted this revision.Feb 8 2021, 9:45 AM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.