This is an archive of the discontinued Mercurial Phabricator instance.

rebase: avoid converting from nodes to revnums twice
ClosedPublic

Authored by martinvonz on Jul 12 2018, 3:34 PM.

Details

Summary

In the case where the node has successors, but none of them is an
ancestor of the destination, we would iterate over the successor nodes
twice, check if they're in the repo and convert them to revnums. I
doubt it's a measureable cost, but it gets simpler this way too.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped