diff: check changes for strict equality

Otherwise there are possible cases, when Change is substituted by another one with same path (therefore equals()), but different content.
This commit is contained in:
Aleksey Pivovarov
2015-02-25 18:46:00 +03:00
parent f734f6f0d6
commit d41ce8a2e1
@@ -194,7 +194,7 @@ public abstract class CacheChangeProcessor extends DiffRequestProcessor {
return;
}
if (myCurrentChange.getBeforeRevision() instanceof FakeRevision || myCurrentChange.getAfterRevision() instanceof FakeRevision) {
if (!ChangeDiffRequestProducer.isEquals(myCurrentChange, selectedChange)) {
myCurrentChange = selectedChange;
updateRequest();
}