Package org.eclipse.jgit.junit

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


    //
    TestRepository d = new TestRepository(dst);
    a = d.blob("a");
    A = d.commit(d.tree(d.file("a", a)));
    B = d.commit().parent(A).create();
    d.update(R_MASTER, B);

    // Clone from dst into src
    //
    Transport t = Transport.open(src, uriOf(dst));
    try {
View Full Code Here


    // Now put private stuff into dst.
    //
    b = d.blob("b");
    P = d.commit(d.tree(d.file("b", b)), A);
    d.update(R_PRIVATE, P);
  }

  @Override
  protected void tearDown() throws Exception {
    if (src != null)
View Full Code Here

    // Now use b but in a different commit than what is hidden.
    //
    TestRepository s = new TestRepository(src);
    RevCommit N = s.commit().parent(B).add("q", b).create();
    s.update(R_MASTER, N);

    // Push this new content to the remote, doing strict validation.
    //
    TransportLocal t = new TransportLocal(src, uriOf(dst)) {
      @Override
View Full Code Here

    remoteURI = toURIish(app, srcName);

    A_txt = src.blob("A");
    A = src.commit().add("A_txt", A_txt).create();
    B = src.commit().parent(A).add("A_txt", "C").add("B", "B").create();
    src.update(master, B);
  }

  public void testListRemote() throws IOException {
    Repository dst = createBareRepository();
View Full Code Here

    remoteURI = toURIish(app, srcGit.getName());

    A_txt = src.blob("A");
    A = src.commit().add("A_txt", A_txt).create();
    B = src.commit().parent(A).add("A_txt", "C").add("B", "B").create();
    src.update(master, B);
  }

  public void testListRemote() throws IOException {
    Repository dst = createBareRepository();
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.