Community
Participate
Working Groups
This issue was discovered by Stefan Lay while he was testing fix for bug 326674. Here is scenario for reproducing this issue: * create and commit new file to repository * make change in nearly created file and stage it * launch synchronization with included local changes When compare view for new this file is launched it shows conflicting change because common ancestor is empty. In this case common ancestor should be same as remote version. Therefore we have an issue in algorithm of calculating common ancestor.
This patch set should fix this issue: http://egit.eclipse.org/r/2050 Because we cannot configure RevWalk used in GitModelObjectContainer.calculateAncestor(RevCommit) so that it will return base commit for files that does not exist in parent commit. Therefore I decided to overwrite getAncestor() method in GitCacheCompareInput.
Fixed with patch 536566d1cac672f70da9ed7c3b97893629dae2aa