use of org.netbeans.lib.cvsclient.command.log.LogMessageParser in project intellij-community by JetBrains.
the class RlogCommand method execute.
// Implemented ============================================================
public final boolean execute(IRequestProcessor requestProcessor, IEventSender eventSender, ICvsListenerRegistry listenerRegistry, IClientEnvironment clientEnvironment, IProgressViewer progressViewer) throws CommandException, AuthenticationException {
final Requests requests = new Requests(CommandRequest.RLOG, clientEnvironment);
requests.addArgumentRequest(myHeadersOnly, "-h");
requests.addArgumentRequest(myNoTags, "-N");
requests.addArgumentRequest(mySuppressEmptyHeaders, "-S");
requests.addArgumentRequest(!isRecursive(), "-l");
requests.addArgumentRequest(getDateFilter(), "-d");
final String revisionFilter = getRevisionFilter();
if (revisionFilter != null) {
requests.addArgumentRequest("-r" + revisionFilter);
} else if (myBranchName != null) {
requests.addArgumentRequest("-r" + myBranchName);
}
requests.addArgumentRequest(myLogDefaultBranch, "-b");
requests.addArgumentRequest(myModuleName);
final ICvsListener parser = new LogMessageParser(eventSender, clientEnvironment.getCvsFileSystem());
parser.registerListeners(listenerRegistry);
try {
return requestProcessor.processRequests(requests, new DummyRequestsProgressHandler());
} finally {
parser.unregisterListeners(listenerRegistry);
}
}
Aggregations