Package org.locationtech.geogig.api.porcelain.StatusOp

Examples of org.locationtech.geogig.api.porcelain.StatusOp.StatusSummary


        ConsoleReader console = cli.getConsole();
        GeoGIG geogig = cli.getGeogig();

        StatusOp op = geogig.command(StatusOp.class);
        StatusSummary summary = op.call();

        final Optional<Ref> currHead = geogig.command(RefParse.class).setName(Ref.HEAD).call();
        checkParameter(currHead.isPresent(), "Repository has no HEAD.");

        if (currHead.get() instanceof SymRef) {
View Full Code Here


        try {
            super.insert(points1_modified);
        } catch (Exception e) {
            e.printStackTrace();
        }
        StatusSummary summary = geogig.command(StatusOp.class).call();
        assertAllFieldsNotNull(summary);
        assertEquals(2, summary.getCountUnstaged());
    }
View Full Code Here

        try {
            super.insertAndAdd(points1_modified);
        } catch (Exception e) {
            e.printStackTrace();
        }
        StatusSummary summary = geogig.command(StatusOp.class).call();
        assertAllFieldsNotNull(summary);
        assertEquals(2, summary.getCountStaged());
    }
View Full Code Here

            super.insert(points2);
            super.insertAndAdd(points1_modified);
        } catch (Exception e) {
            e.printStackTrace();
        }
        StatusSummary summary = geogig.command(StatusOp.class).call();
        assertAllFieldsNotNull(summary);
        assertEquals(3, summary.getCountStaged());
    }
View Full Code Here

        super.populate(true, points1);
    }

    @Test
    public void testNothingToChange() {
        StatusSummary summary = geogig.command(StatusOp.class).call();
        assertAllFieldsNotNull(summary);
        assertEquals(0, summary.getCountStaged());
        assertEquals(0, summary.getCountUnstaged());
        assertEquals(0, summary.getCountConflicts());
    }
View Full Code Here

TOP

Related Classes of org.locationtech.geogig.api.porcelain.StatusOp.StatusSummary

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.