Package org.locationtech.geogig.api.plumbing

Examples of org.locationtech.geogig.api.plumbing.CheckSparsePath


        RevCommit commit8 = geogig.command(CommitOp.class).setMessage("commit8").call();

        RevCommit commit10 = geogig.command(MergeOp.class).setMessage("commit10")
                .addCommit(Suppliers.ofInstance(commit9.getId())).call().getMergeCommit();

        CheckSparsePath command = geogig.command(CheckSparsePath.class);

        assertTrue(command.setStart(commit7.getId()).setEnd(commit1.getId()).call());
        assertFalse(command.setStart(commit6.getId()).setEnd(commit1.getId()).call());
        assertTrue(command.setStart(commit5.getId()).setEnd(commit2.getId()).call());
        assertFalse(command.setStart(commit10.getId()).setEnd(commit1.getId()).call());
        assertFalse(command.setStart(commit10.getId()).setEnd(commit3.getId()).call());
        assertFalse(command.setStart(commit8.getId()).setEnd(commit1.getId()).call());
        assertFalse(command.setStart(commit4.getId()).setEnd(commit2.getId()).call());
        assertFalse(command.setStart(commit7.getId()).setEnd(commit5.getId()).call());

    }
View Full Code Here


        RevCommit commit8 = geogig.command(CommitOp.class).setMessage("commit8").call();

        RevCommit commit10 = geogig.command(MergeOp.class).setMessage("commit10")
                .addCommit(Suppliers.ofInstance(commit9.getId())).call().getMergeCommit();

        CheckSparsePath command = geogig.command(CheckSparsePath.class);

        assertTrue(command.setStart(commit7.getId()).setEnd(commit1.getId()).call());
        assertTrue(command.setStart(commit6.getId()).setEnd(commit1.getId()).call());
        assertTrue(command.setStart(commit5.getId()).setEnd(commit2.getId()).call());
        assertTrue(command.setStart(commit10.getId()).setEnd(commit1.getId()).call());
        assertFalse(command.setStart(commit10.getId()).setEnd(commit3.getId()).call());
        assertFalse(command.setStart(commit8.getId()).setEnd(commit1.getId()).call());
        assertFalse(command.setStart(commit4.getId()).setEnd(commit2.getId()).call());
        assertFalse(command.setStart(commit7.getId()).setEnd(commit5.getId()).call());

    }
View Full Code Here

TOP

Related Classes of org.locationtech.geogig.api.plumbing.CheckSparsePath

Copyright © 2018 www.massapicom. 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.