Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-01-28 21:59:52 +0000
committerjames2002-01-28 21:59:52 +0000
commit49ba857692750cb911cfbd00ed49c3a7e72469a0 (patch)
tree6c236524b0beb3a34e3dd25f3a6bedcf76a7882c
parentb7d07d60f69d9c1093aa83e23b69f57f1f864f1b (diff)
downloadeclipse.platform.team-49ba857692750cb911cfbd00ed49c3a7e72469a0.tar.gz
eclipse.platform.team-49ba857692750cb911cfbd00ed49c3a7e72469a0.tar.xz
eclipse.platform.team-49ba857692750cb911cfbd00ed49c3a7e72469a0.zip
Fix bug in makeOutgoing for incoming deletions
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/CVSRemoteSyncElement.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/CVSRemoteSyncElement.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/CVSRemoteSyncElement.java
index b2436992b..2b601d9f3 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/CVSRemoteSyncElement.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/CVSRemoteSyncElement.java
@@ -172,16 +172,16 @@ public class CVSRemoteSyncElement extends RemoteSyncElement {
// We have an incoming change, addition, or deletion that we want to ignore
if (local.exists()) {
// We could have an incoming change or deletion
- info = remote.getSyncInfo();
- if (info.isDeleted()) {
- // For a deletion, change the revision to an add
- revision = ResourceSyncInfo.ADDED_REVISION;
+ if (remote == null) {
+ info = new ResourceSyncInfo(local.getName(), ResourceSyncInfo.ADDED_REVISION, "dummy timestamp", CVSProvider.isText(local.getName())?"":"-kb", local.getParent().getFolderSyncInfo().getTag(), null);
+ revision = info.getRevision();
} else {
+ info = remote.getSyncInfo();
// Otherwise change the revision to the remote revision
revision = info.getRevision();
+ // Use the local sync info for the other info
+ info = local.getSyncInfo();
}
- // Use the local sync info for the other info
- info = local.getSyncInfo();
} else {
// We have an incoming add, turn it around as an outgoing delete
info = remote.getSyncInfo();

Back to the top