Package org.tmatesoft.hg.internal

Examples of org.tmatesoft.hg.internal.RevisionSet.heads()


      if (phaseHelper.isCapableOfPhases()) {
        HgRemoteRepository.Phases remotePhases = remoteRepo.getPhases();
        RevisionSet remoteDraftsLocalPublic = phaseHelper.synchronizeWithRemote(remotePhases, outgoing);
        if (!remoteDraftsLocalPublic.isEmpty()) {
          // foreach remoteDraftsLocallyPublic.heads() do push Draft->Public
          for (Nodeid n : remoteDraftsLocalPublic.heads(parentHelper)) {
            try {
              Outcome upo = remoteRepo.updatePhase(HgPhase.Draft, HgPhase.Public, n);
              if (!upo.isOk()) {
                implRepo.getLog().dump(getClass(), Severity.Info, "Failed to update remote phase, reason: %s", upo.getMessage());
              }
View Full Code Here


    // heads
    errorCollector.assertEquals(new RevisionSet(nodes5), complete.heads(parentHelper));
    Nodeid[] nodes6 = { allRevs[9], allRevs[8] };
    RevisionSet toR7 = complete.subtract(new RevisionSet(nodes6));
    Nodeid[] nodes7 = { allRevs[7], allRevs[6], allRevs[4] };
    errorCollector.assertEquals(new RevisionSet(nodes7), toR7.heads(parentHelper));
    Nodeid[] nodes8 = { allRevs[5], allRevs[7] };
    RevisionSet withoutNoMergeBranch = toR7.subtract(new RevisionSet(nodes8));
    Nodeid[] nodes9 = { allRevs[6], allRevs[4] };
    errorCollector.assertEquals(new RevisionSet(nodes9), withoutNoMergeBranch.heads(parentHelper));
    errorCollector.assertEquals(complete.heads(parentHelper), complete.heads(parentHelper).heads(parentHelper));
View Full Code Here

    Nodeid[] nodes7 = { allRevs[7], allRevs[6], allRevs[4] };
    errorCollector.assertEquals(new RevisionSet(nodes7), toR7.heads(parentHelper));
    Nodeid[] nodes8 = { allRevs[5], allRevs[7] };
    RevisionSet withoutNoMergeBranch = toR7.subtract(new RevisionSet(nodes8));
    Nodeid[] nodes9 = { allRevs[6], allRevs[4] };
    errorCollector.assertEquals(new RevisionSet(nodes9), withoutNoMergeBranch.heads(parentHelper));
    errorCollector.assertEquals(complete.heads(parentHelper), complete.heads(parentHelper).heads(parentHelper));
  }
 
  @Test
  public void testAncestorsAndChildren() throws Exception {
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.