Fixed merge commit handling using last valid revision instead of merge commit
Better rev-list handling for incremental updates