Page MenuHomePhabricator

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

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

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

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.Mon, Feb 8, 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.