1 11 package org.eclipse.team.internal.ccvs.core.client; 12 13 14 import org.eclipse.team.internal.ccvs.core.*; 15 import org.eclipse.team.internal.ccvs.core.client.Command.LocalOption; 16 import org.eclipse.team.internal.ccvs.core.syncinfo.ResourceSyncInfo; 17 18 22 class TagFileSender extends FileStructureVisitor { 23 24 public TagFileSender(Session session, LocalOption[] localOptions) { 25 super(session, localOptions, false, false); 26 } 27 28 32 protected void sendFile(ICVSFile mFile) throws CVSException { 33 Policy.checkCanceled(monitor); 34 byte[] syncBytes = mFile.getSyncBytes(); 35 if (syncBytes != null) { 36 sendFolder(mFile.getParent()); 38 if (ResourceSyncInfo.isDeletion(syncBytes)) { 40 syncBytes = ResourceSyncInfo.convertFromDeletion(syncBytes); 42 } 43 if (!ResourceSyncInfo.isAddition(syncBytes)) { 44 session.sendEntry(syncBytes, ResourceSyncInfo.getTimestampToServer(syncBytes, mFile.getTimeStamp())); 45 session.sendIsModified(mFile, ResourceSyncInfo.isBinary(syncBytes), monitor); 46 } 47 } 48 } 49 } 50 | Popular Tags |