final TransferSummary result = command.setAll(fetchAll).setPrune(prune).call(); context.setResponseContent(new CommandResponse() { @Override
FetchOp fetch = cli.getGeogig().command(FetchOp.class); fetch.setProgressListener(cli.getProgressListener()); fetch.setAll(all).setPrune(prune).setFullDepth(fulldepth); fetch.setDepth(depth);
FetchOp fetch = cli.getGeogig().command(FetchOp.class); fetch.setProgressListener(cli.getProgressListener()); fetch.setAll(all).setPrune(prune).setFullDepth(fulldepth); fetch.setDepth(depth); fetch.setFetchIndexes(withIndexes);
FetchOp fetch = cli.getGeogig().command(FetchOp.class); fetch.setProgressListener(cli.getProgressListener()); fetch.setAll(all).setPrune(prune).setFullDepth(fulldepth); fetch.setDepth(depth); fetch.setFetchIndexes(withIndexes);
@Test public void testFetchWithPrune() throws Exception { // fetch from the remote FetchOp fetch = fetchOp(); fetch.addRemote("origin").setAll(true).call(); verifyFetch(); Optional<Ref> localOriginBranch1 = getRef(localRepo, "refs/remotes/origin/Branch1"); assertTrue(localOriginBranch1.isPresent()); // Remove a branch from the remote remoteGeogig.geogig.command(BranchDeleteOp.class).setName("Branch1").call(); // fetch again fetch = fetchOp(); TransferSummary summary = fetch.setPrune(true).call(); assertSummary(summary, origin.getFetchURL(), localOriginBranch1, absent()); verifyPrune(); }
@Test public void testFetchWithPrune() throws Exception { // fetch from the remote FetchOp fetch = fetchOp(); fetch.addRemote("origin").setAllRemotes(true).call(); verifyFetch(); Optional<Ref> localOriginBranch1 = getRef(localRepo, "refs/remotes/origin/Branch1"); assertTrue(localOriginBranch1.isPresent()); // Remove a branch from the remote remoteGeogig.geogig.command(BranchDeleteOp.class).setName("Branch1").call(); // fetch again fetch = fetchOp(); TransferSummary summary = fetch.setPrune(true).call(); assertSummary(summary, origin.getFetchURL(), localOriginBranch1, absent()); verifyPrune(); }
TransferSummary summary = fetch.setPrune(true).call(); assertEquals(1, summary.getRefDiffs().size()); assertTrue(summary.getRefDiffs().containsKey(origin.getFetchURL()));
TransferSummary summary = fetch.setPrune(true).call(); assertEquals(1, summary.getRefDiffs().size()); assertTrue(summary.getRefDiffs().containsKey(origin.getFetchURL()));