Examples of heads()


Examples of com.aragost.javahg.BaseRepository.heads()

    public void testGraftSelf() throws IOException {
        Assume.assumeTrue(isGraftSupported());
        BaseRepository repo = getTestRepository();
        Changeset cs = createChangeset();
        GraftCommand.on(repo).execute(cs);
        List<Changeset> heads = repo.heads();
        assertSingleton(cs, heads);
    }

    @Test
    public void test() throws IOException {
View Full Code Here

Examples of com.jcabi.github.References.heads()

    public void iteratesHeads() throws Exception {
        final Repo owner = this.repo();
        final References refs = owner.git().references();
        refs.create("refs/heads/branch2", "blahblah");
        MatcherAssert.assertThat(
            refs.heads(),
            Matchers.<Reference>iterableWithSize(1)
        );
    }

    /**
 
View Full Code Here

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

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

    // 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

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

    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.