commitMongo.setAffectedPaths(new LinkedList<String>(affectedPaths));
commitMongo.setBaseRevId(headMongo.getHeadRevisionId());
}
private void createMongoNodes() throws Exception {
CommitCommandInstructionVisitor visitor = new CommitCommandInstructionVisitor(mongoConnection,
headMongo.getHeadRevisionId());
for (Instruction instruction : commit.getInstructions()) {
instruction.accept(visitor);
}
Map<String, NodeMongo> pathNodeMap = visitor.getPathNodeMap();
affectedPaths = pathNodeMap.keySet(); // TODO Original copies and moved nodes must be included!
nodeMongos = new HashSet<NodeMongo>(pathNodeMap.values());
for (NodeMongo nodeMongo : nodeMongos) {
nodeMongo.setRevisionId(revisionId);