Package org.eclipse.egit.core.op

Examples of org.eclipse.egit.core.op.RebaseOperation


    // parent of topic commit should be first master commit before rebase
    assertEquals(first, topicCommit.getParent(0));

    // rebase topic onto master
    RebaseOperation op = new RebaseOperation(repository, repository
        .getRef(MASTER));
    op.execute(null);

    RebaseResult res = op.getResult();
    assertEquals(RebaseResult.Status.STOPPED, res.getStatus());

    try {
      // let's try to start again, we should get a wrapped
      // WrongRepositoryStateException
      op = new RebaseOperation(repository, repository.getRef(MASTER));
      op.execute(null);
      fail("Expected Exception not thrown");
    } catch (CoreException e) {
      Throwable cause = e.getCause();
      assertTrue(cause instanceof WrongRepositoryStateException);
    }
View Full Code Here


    AbstractRebaseCommandHandler rebaseCurrentRef = new AbstractRebaseCommandHandler(
        jobname, UIText.RebaseCurrentRefCommand_RebaseCanceledMessage) {
      @Override
      protected RebaseOperation createRebaseOperation(
          Repository repository2) throws ExecutionException {
        return new RebaseOperation(repository2, ref,
            RebaseInteractiveHandler.INSTANCE);
      }
    };
    rebaseCurrentRef.execute(repository);
    try {
View Full Code Here

    return null;
  }

  protected RebaseOperation createRebaseOperation(Repository repository,
      Ref ref) {
    return new RebaseOperation(repository, ref,
        RebaseInteractiveHandler.INSTANCE);
  }
View Full Code Here

public class RebaseCurrentHandler extends AbstractRebaseHistoryCommandHandler {

  @Override
  protected RebaseOperation createRebaseOperation(Repository repository,
      Ref ref) {
    return new RebaseOperation(repository, ref);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.core.op.RebaseOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.