Examples of graphDatabase()


Examples of org.locationtech.geogig.repository.Repository.graphDatabase()

                    if (commonAncestor.isPresent()) {
                        if (from.command(CheckSparsePath.class).setStart(parentId)
                                .setEnd(commonAncestor.get()).call()) {
                            // This should be the base commit to preserve changes that were filtered
                            // out.
                            newParents.add(0, from.graphDatabase().getMapping(parentId));
                            continue;
                        }
                    }
                }
                newParents.add(from.graphDatabase().getMapping(parentId));
View Full Code Here

Examples of org.locationtech.geogig.repository.Repository.graphDatabase()

                            newParents.add(0, from.graphDatabase().getMapping(parentId));
                            continue;
                        }
                    }
                }
                newParents.add(from.graphDatabase().getMapping(parentId));
            }
            if (newParents.size() > 0) {
                parent = from.graphDatabase().getMapping(newParents.get(0));
            }
            Iterator<DiffEntry> diffIter = from.command(DiffOp.class).setNewVersion(commitId)
View Full Code Here

Examples of org.locationtech.geogig.repository.Repository.graphDatabase()

                    }
                }
                newParents.add(from.graphDatabase().getMapping(parentId));
            }
            if (newParents.size() > 0) {
                parent = from.graphDatabase().getMapping(newParents.get(0));
            }
            Iterator<DiffEntry> diffIter = from.command(DiffOp.class).setNewVersion(commitId)
                    .setOldVersion(parent).setReportTrees(true).call();

            // connect and send packed changes
View Full Code Here

Examples of org.locationtech.geogig.repository.Repository.graphDatabase()

                BufferedReader rd = new BufferedReader(new InputStreamReader(in));

                String line = rd.readLine();
                if (line != null) {
                    ObjectId remoteCommitId = ObjectId.valueOf(line);
                    from.graphDatabase().map(commit.getId(), remoteCommitId);
                    from.graphDatabase().map(remoteCommitId, commit.getId());
                }

            } catch (IOException e) {
                throw Throwables.propagate(e);
View Full Code Here

Examples of org.locationtech.geogig.repository.Repository.graphDatabase()

                String line = rd.readLine();
                if (line != null) {
                    ObjectId remoteCommitId = ObjectId.valueOf(line);
                    from.graphDatabase().map(commit.getId(), remoteCommitId);
                    from.graphDatabase().map(remoteCommitId, commit.getId());
                }

            } catch (IOException e) {
                throw Throwables.propagate(e);
            }
View Full Code Here

Examples of org.locationtech.geogig.repository.Repository.graphDatabase()

        List<ObjectId> updated = new LinkedList<ObjectId>();
        ImmutableList<Ref> branches = command(BranchListOp.class).setLocal(true).setRemotes(true)
                .call();

        GraphDatabase graphDb = repository.graphDatabase();

        for (Ref ref : branches) {
            Iterator<RevCommit> commits = command(LogOp.class).setUntil(ref.getObjectId()).call();
            while (commits.hasNext()) {
                RevCommit next = commits.next();
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.