Package org.eclipse.jgit.junit

Examples of org.eclipse.jgit.junit.TestRepository.branch()


    }
    assertEquals(B, dst.getRepository().getRef(master).getObjectId());
    List<AccessEvent> cloneRequests = getRequests();

    // Only create a few new commits.
    TestRepository.BranchBuilder b = dst.branch(master);
    for (int i = 0; i < 4; i++)
      b.commit().tick(3600 /* 1 hour */).message("c" + i).create();

    // Create a new commit on the remote.
    //
View Full Code Here


    // Force enough into the local client that enumeration will
    // need multiple packets, but not too many to overflow and
    // not pick up the ACK_COMMON message.
    //
    TestRepository.BranchBuilder b = dst.branch(master);
    for (int i = 0; i < 32 - 1; i++)
      b.commit().tick(3600 /* 1 hour */).message("c" + i).create();

    // Create a new commit on the remote.
    //
View Full Code Here

    // Force enough into the local client that enumeration will
    // need multiple packets, but not too many to overflow and
    // not pick up the ACK_COMMON message.
    //
    TestRepository.BranchBuilder b = dst.branch(master);
    for (int i = 0; i < 32 - 1; i++)
      b.commit().tick(3600 /* 1 hour */).message("c" + i).create();

    // Create a new commit on the remote.
    //
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.