1 11 package org.eclipse.team.internal.ccvs.core.client; 12 13 import org.eclipse.core.runtime.IProgressMonitor; 14 import org.eclipse.team.internal.ccvs.core.CVSException; 15 import org.eclipse.team.internal.ccvs.core.ICVSResource; 16 17 public class Log extends AbstractMessageCommand { 18 19 20 public static LocalOption makeRevisionOption(String revision) { 21 return new LocalOption("-r" + revision, null); } 23 public static final LocalOption RCS_FILE_NAMES_ONLY = new LocalOption("-R"); 25 public static final LocalOption NO_TAGS = new LocalOption("-N"); 27 protected Log() { } 28 protected String getRequestId() { 29 return "log"; } 31 32 protected ICVSResource[] sendLocalResourceState(Session session, GlobalOption[] globalOptions, 33 LocalOption[] localOptions, ICVSResource[] resources, IProgressMonitor monitor) 34 throws CVSException { 35 36 boolean sendEmptyFolders = Command.findOption(localOptions, RCS_FILE_NAMES_ONLY.getOption()) != null; 38 new FileStructureVisitor(session, localOptions, sendEmptyFolders, false ).visit(session, resources, monitor); 39 return resources; 40 } 41 } 42 43 | Popular Tags |