Use common ancestor revision as target when getting diff.

Use common ancestor revision as target when getting diff. Use vcs-specific approach to get the diff instead of comparing export