merge and calculate weak revisions