Package org.exist.versioning.svn.internal.wc.admin

Examples of org.exist.versioning.svn.internal.wc.admin.SVNLog.addCommand()


                reverted |= dir.getFile(entry.getConflictOld()).exists();
            }
        }
        if (entry.getConflictWorking() != null) {
            command.put(SVNLog.NAME_ATTR, entry.getConflictWorking());
            log.addCommand(SVNLog.DELETE, command, false);
            command.clear();
            newEntryProperties.put(SVNProperty.shortPropertyName(SVNProperty.CONFLICT_WRK), (String) null);
            if (!reverted) {
                reverted |= dir.getFile(entry.getConflictWorking()).exists();
            }
View Full Code Here


                reverted |= dir.getFile(entry.getConflictWorking()).exists();
            }
        }
        if (entry.getPropRejectFile() != null) {
            command.put(SVNLog.NAME_ATTR, entry.getPropRejectFile());
            log.addCommand(SVNLog.DELETE, command, false);
            command.clear();
            newEntryProperties.put(SVNProperty.shortPropertyName(SVNProperty.PROP_REJECT_FILE), (String) null);
            if (!reverted) {
                reverted |= dir.getFile(entry.getPropRejectFile()).exists();
            }
View Full Code Here

            newEntryProperties.put(SVNProperty.shortPropertyName(SVNProperty.SCHEDULE), (String) null);
            reverted = true;
        }
        if (!newEntryProperties.isEmpty()) {
            newEntryProperties.put(SVNLog.NAME_ATTR, name);
            log.addCommand(SVNLog.MODIFY_ENTRY, newEntryProperties, false);
        }
        log.save();
        dir.runLogs();
        return reverted;
    }
View Full Code Here

        SVNLog log = files.getLog();
        if (log != null) {
            SVNProperties command = new SVNProperties();
            command.put(SVNLog.NAME_ATTR, files.getBasePath());
            command.put(SVNLog.DEST_ATTR, files.getWCPath());
            log.addCommand(SVNLog.COPY_AND_TRANSLATE, command, false);
            command.clear();
        }
        return SVNMergeResult.createMergeResult(SVNStatusType.MERGED, null);
    }
   
View Full Code Here

        SVNLog log = files.getLog();
        if (log != null) {
            SVNProperties command = new SVNProperties();
            command.put(SVNLog.NAME_ATTR, files.getRepositoryPath());
            command.put(SVNLog.DEST_ATTR, files.getWCPath());
            log.addCommand(SVNLog.COPY_AND_TRANSLATE, command, false);
            command.clear();
        }

        return SVNMergeResult.createMergeResult(SVNStatusType.MERGED, null);
    }
View Full Code Here

        if (log != null) {
            SVNProperties command = new SVNProperties();
            String tmpBasePath = SVNFileUtil.getBasePath(tmpFile);
            command.put(SVNLog.NAME_ATTR, tmpBasePath);
            command.put(SVNLog.DEST_ATTR, files.getWCPath());
            log.addCommand(SVNLog.COPY_AND_TRANSLATE, command, false);
            command.clear();

            command.put(SVNLog.NAME_ATTR, tmpBasePath);
            log.addCommand(SVNLog.DELETE, command, false);
            command.clear();
View Full Code Here

            command.put(SVNLog.DEST_ATTR, files.getWCPath());
            log.addCommand(SVNLog.COPY_AND_TRANSLATE, command, false);
            command.clear();

            command.put(SVNLog.NAME_ATTR, tmpBasePath);
            log.addCommand(SVNLog.DELETE, command, false);
            command.clear();
        }

        return SVNMergeResult.createMergeResult(SVNStatusType.MERGED, null);
    }
View Full Code Here

            File mineFile = SVNFileUtil.createUniqueFile(root, files.getWCPath(), files.getLocalLabel(), false);
            String minePath = SVNFileUtil.getBasePath(mineFile);
            if (log != null) {
                command.put(SVNLog.NAME_ATTR, files.getLocalPath());
                command.put(SVNLog.DEST_ATTR, minePath);
                log.addCommand(SVNLog.MOVE, command, false);
                command.clear();
            }
            command.put(SVNProperty.shortPropertyName(SVNProperty.CONFLICT_WRK), minePath);
        } else {
            command.put(SVNProperty.shortPropertyName(SVNProperty.CONFLICT_WRK), "");
View Full Code Here

            String copyFromPath = files.getCopyFromPath();
            String detranslatedPath = files.getWCPath();
            if (log != null) {
                command.put(SVNLog.NAME_ATTR, copyFromPath);
                command.put(SVNLog.DEST_ATTR, detranslatedPath);
                log.addCommand(SVNLog.COPY_AND_TRANSLATE, command, false);
                command.clear();
            }
        }

        File mineFile = SVNFileUtil.createUniqueFile(root, files.getWCPath(), files.getLocalLabel(), false);
View Full Code Here

        if (log != null) {
            command.put(SVNLog.NAME_ATTR, basePath);
            command.put(SVNLog.DEST_ATTR, oldPath);
            command.put(SVNLog.ATTR2, files.getWCPath());
            log.addCommand(SVNLog.COPY_AND_TRANSLATE, command, false);
            command.clear();

            command.put(SVNLog.NAME_ATTR, latestPath);
            command.put(SVNLog.DEST_ATTR, newPath);
            command.put(SVNLog.ATTR2, files.getWCPath());
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.