#2161 Optimize the algorithm used to create the diff used to open a new PR
Merged by pingou. Opened by pingou.
optimize_diff  into  master

Download 2161.patch

Here as well, we used to iterate through all the commits to find which
ones are present on the other branch. Now we just iterate through both
branch and stop when we encounter the first commit present in both
branches.

We will need to consolidate our code base a little as this is the third
time we are using a similar piece of code, so we definitively have
duplication here.

2 new commits added

  • Handle the situation where the main branch is ahead of the other one
  • Fix to the optimizations

Thanks for the review!

rebased

Pull-Request has been merged by pingou

Metadata