Search in sources :

Example 1 with JazzChangeLogCommand

use of org.apache.maven.scm.provider.jazz.command.changelog.JazzChangeLogCommand in project maven-scm by apache.

the class JazzUpdateCommand method getChangeLogCommand.

/**
 * {@inheritDoc}
 */
protected ChangeLogCommand getChangeLogCommand() {
    JazzChangeLogCommand command = new JazzChangeLogCommand();
    command.setLogger(getLogger());
    return command;
}
Also used : JazzChangeLogCommand(org.apache.maven.scm.provider.jazz.command.changelog.JazzChangeLogCommand)

Example 2 with JazzChangeLogCommand

use of org.apache.maven.scm.provider.jazz.command.changelog.JazzChangeLogCommand in project maven-scm by apache.

the class JazzScmProvider method changelog.

/**
 * {@inheritDoc}
 */
protected ChangeLogScmResult changelog(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException {
    getLogger().debug("JazzScmProvider:changelog()");
    // We need to call the status command first, so that we can get the details of the workspace.
    // This is needed for the list changesets command.
    // We could also 'trust' the value in the pom.
    JazzStatusCommand statusCommand = new JazzStatusCommand();
    statusCommand.setLogger(getLogger());
    statusCommand.execute(repository, fileSet, parameters);
    JazzChangeLogCommand command = new JazzChangeLogCommand();
    command.setLogger(getLogger());
    return (ChangeLogScmResult) command.execute(repository, fileSet, parameters);
}
Also used : JazzChangeLogCommand(org.apache.maven.scm.provider.jazz.command.changelog.JazzChangeLogCommand) JazzStatusCommand(org.apache.maven.scm.provider.jazz.command.status.JazzStatusCommand) ChangeLogScmResult(org.apache.maven.scm.command.changelog.ChangeLogScmResult)

Aggregations

JazzChangeLogCommand (org.apache.maven.scm.provider.jazz.command.changelog.JazzChangeLogCommand)2 ChangeLogScmResult (org.apache.maven.scm.command.changelog.ChangeLogScmResult)1 JazzStatusCommand (org.apache.maven.scm.provider.jazz.command.status.JazzStatusCommand)1