Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-03-22 19:37:27 +0000
committerMichael Valenta2004-03-22 19:37:27 +0000
commitec4beb8a56c80f656e36197f3568307a37384aeb (patch)
tree8618bcdfe40a6df2fd621ba42f8a05c2525d25d9
parentfcdffb1fe2570bfa2a7da36d78c23a1599a07be7 (diff)
downloadeclipse.platform.team-ec4beb8a56c80f656e36197f3568307a37384aeb.tar.gz
eclipse.platform.team-ec4beb8a56c80f656e36197f3568307a37384aeb.tar.xz
eclipse.platform.team-ec4beb8a56c80f656e36197f3568307a37384aeb.zip
55566: Prompted for passwords for repositories not in the scope of compare
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRemoteAction.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRemoteAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRemoteAction.java
index 99f5da50c..52fbd8ba8 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRemoteAction.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRemoteAction.java
@@ -39,13 +39,10 @@ public class CompareWithRemoteAction extends WorkspaceAction {
private SyncInfoFilter contentCompare = new SyncInfoFilter.ContentComparisonSyncInfoFilter();
public boolean select(SyncInfo info, IProgressMonitor monitor) {
// Want to select infos whose contents do not match
- boolean different = !contentCompare.select(info, monitor);
- if(different) {
- for (int i = 0; i < resources.length; i++) {
- IResource resource = resources[i];
- if (resource.getFullPath().isPrefixOf(info.getLocal().getFullPath())) {
- return true;
- }
+ for (int i = 0; i < resources.length; i++) {
+ IResource resource = resources[i];
+ if (resource.getFullPath().isPrefixOf(info.getLocal().getFullPath())) {
+ return !contentCompare.select(info, monitor);
}
}
return false;

Back to the top