Package org.tmatesoft.hg.internal

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


    HgParentChildMap<HgChangelog> parentHelper = new HgParentChildMap<HgChangelog>(repo.getChangelog());
    parentHelper.init();
    final RevisionSet complete = new RevisionSet(allRevs);
    Nodeid[] nodes = { allRevs[0] };
    // roots
    errorCollector.assertEquals(new RevisionSet(nodes), complete.roots(parentHelper));
    Nodeid[] nodes1 = { allRevs[0], allRevs[1] };
    RevisionSet fromR2 = complete.subtract(new RevisionSet(nodes1));
    Nodeid[] nodes2 = { allRevs[0], allRevs[1], allRevs[2] };
    RevisionSet fromR3 = complete.subtract(new RevisionSet(nodes2));
    Nodeid[] nodes3 = { allRevs[2], allRevs[3] };
View Full Code Here


    Nodeid[] nodes2 = { allRevs[0], allRevs[1], allRevs[2] };
    RevisionSet fromR3 = complete.subtract(new RevisionSet(nodes2));
    Nodeid[] nodes3 = { allRevs[2], allRevs[3] };
    errorCollector.assertEquals(new RevisionSet(nodes3), fromR2.roots(parentHelper));
    Nodeid[] nodes4 = { allRevs[3], allRevs[4], allRevs[5] };
    errorCollector.assertEquals(new RevisionSet(nodes4), fromR3.roots(parentHelper));
    Nodeid[] nodes5 = { allRevs[9], allRevs[7] };
    // heads
    errorCollector.assertEquals(new RevisionSet(nodes5), complete.heads(parentHelper));
    Nodeid[] nodes6 = { allRevs[9], allRevs[8] };
    RevisionSet toR7 = complete.subtract(new RevisionSet(nodes6));
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.