Examples of RevisionGraph


Examples of com.google.devtools.moe.client.repositories.RevisionGraph

  }

  public void testMakeResult() throws Exception {
    Revision startingRev = new Revision("1003", "repo1");
    List<Revision> matching = ImmutableList.of(new Revision("1002", "repo1"));
    RevisionGraph nonMatching = RevisionGraph.builder(matching)
        .addRevision(startingRev, new RevisionMetadata("id", "author", "date", "desc", matching))
        .build();

    EquivalenceMatchResult result = equivalenceMatcher.makeResult(nonMatching, matching);
    assertEquals(nonMatching, result.getRevisionsSinceEquivalence());
View Full Code Here

Examples of com.google.devtools.moe.client.repositories.RevisionGraph

    @Override
    public <T> T findRevisions(Revision revision, RevisionMatcher<T> matcher) {
      if (revision == null) {
        revision = new Revision("migrated_to", name);
      }
      RevisionGraph revTree = RevisionGraph.builder(ImmutableList.of(revision))
          .addRevision(revision, getMetadata(revision))
          .build();
      return matcher.makeResult(revTree, ImmutableList.of(new Revision("1", name)));
    }
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.