1 11 package org.eclipse.team.internal.ccvs.core.client; 12 13 import org.eclipse.team.internal.ccvs.core.CVSTag; 14 15 public class RDiff extends RemoteCommand { 16 17 18 public static final LocalOption SUMMARY = new LocalOption("-s", null); 20 23 protected String getRequestId() { 24 return "rdiff"; } 26 27 31 public static LocalOption makeTagOption(CVSTag tag) { 32 if (tag == null) tag = CVSTag.DEFAULT; 33 int type = tag.getType(); 34 switch (type) { 35 case CVSTag.BRANCH: 36 case CVSTag.VERSION: 37 case CVSTag.HEAD: 38 return new LocalOption("-r", tag.getName()); case CVSTag.DATE: 40 return new LocalOption("-D", tag.getName()); default: 42 throw new IllegalArgumentException (); 44 } 45 } 46 } 47 | Popular Tags |