Search in sources :

Example 1 with LogMessageParser

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);
    }
}
Also used : LogMessageParser(org.netbeans.lib.cvsclient.command.log.LogMessageParser) DummyRequestsProgressHandler(org.netbeans.lib.cvsclient.progress.sending.DummyRequestsProgressHandler) ICvsListener(org.netbeans.lib.cvsclient.event.ICvsListener) Requests(org.netbeans.lib.cvsclient.request.Requests)

Aggregations

LogMessageParser (org.netbeans.lib.cvsclient.command.log.LogMessageParser)1 ICvsListener (org.netbeans.lib.cvsclient.event.ICvsListener)1 DummyRequestsProgressHandler (org.netbeans.lib.cvsclient.progress.sending.DummyRequestsProgressHandler)1 Requests (org.netbeans.lib.cvsclient.request.Requests)1