diff options
author | Tomasz Zarna | 2011-11-23 16:49:54 +0000 |
---|---|---|
committer | Tomasz Zarna | 2011-11-23 16:49:54 +0000 |
commit | 1d317a8da6b135518fc0f27e059e2d38a94760f8 (patch) | |
tree | 9d482d8a972f45a982ebacf13fbe330be5929a71 /bundles/org.eclipse.team.core | |
parent | 951477fe0d9d1aa4bbfcabd936d0d7641c6f712a (diff) | |
download | eclipse.platform.team-1d317a8da6b135518fc0f27e059e2d38a94760f8.tar.gz eclipse.platform.team-1d317a8da6b135518fc0f27e059e2d38a94760f8.tar.xz eclipse.platform.team-1d317a8da6b135518fc0f27e059e2d38a94760f8.zip |
bug 364561: test failures due to unexpected outgoing changesv20111123-1649
Diffstat (limited to 'bundles/org.eclipse.team.core')
-rw-r--r-- | bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ContentComparisonDiffFilter.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ContentComparisonDiffFilter.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ContentComparisonDiffFilter.java index 984980e7c..5c520db9b 100644 --- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ContentComparisonDiffFilter.java +++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ContentComparisonDiffFilter.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006 IBM Corporation and others. + * Copyright (c) 2006, 2011 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -55,7 +55,8 @@ public class ContentComparisonDiffFilter extends DiffFilter { public boolean select(IDiff diff, IProgressMonitor monitor) { IFileRevision remote = SyncInfoToDiffConverter.getRemote(diff); IResource local = ResourceDiffTree.getResourceFor(diff); - if (local == null || local.getType() != IResource.FILE) return true; + if (local == null) return true; + if (local.getType() != IResource.FILE) return false; if (remote == null) return !local.exists(); if (!local.exists()) return false; return compareContents((IFile)local, remote, monitor); |