Instead of calculating diffs, just apply the revision to the branch
as-is. If things don't match, update them. Done.
Problems happens if there are devel project changes and histories
are no longer linear and the diffs are not calculated properly.
eg. trytond_stock_lot devel branch was imported incorrectly