Examples of SVNLookClient


Examples of org.tmatesoft.svn.core.wc.admin.SVNLookClient

            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CL_INSUFFICIENT_ARGS,
                    "Missing path argument");
            SVNErrorManager.error(err, SVNLogType.CLIENT);
        }

        SVNLookClient client = environment.getClientManager().getLookClient();
        SVNLock lock = client.doGetLock(environment.getRepositoryFile(), path);
       
        if (lock != null) {
            ISVNOptions options = getEnvironment().getClientManager().getOptions();
            String creationDate = SVNDate.formatHumanDate(lock.getCreationDate(), options);
            String expirationDate = lock.getExpirationDate() != null ? SVNDate.formatHumanDate(lock.getExpirationDate(), options) : "";
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.admin.SVNLookClient

        return options;
    }

    public void run() throws SVNException {
        SVNLookCommandEnvironment environment = getSVNLookEnvironment();
        SVNLookClient client = environment.getClientManager().getLookClient();
        if (environment.isRevision()) {
            client.doGetChangedDirectories(environment.getRepositoryFile(),
                    getRevisionObject(), this);
        } else {
            client.doGetChangedDirectories(environment.getRepositoryFile(), environment.getTransaction(), this);
        }
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.admin.SVNLookClient

        return options;
    }

    public void run() throws SVNException {
        SVNLookCommandEnvironment environment = getSVNLookEnvironment();
        SVNLookClient client = environment.getClientManager().getLookClient();
        if (environment.isRevision()) {
            client.doGetChanged(environment.getRepositoryFile(),
                    getRevisionObject(), this, environment.isCopyInfo());
        } else {
            client.doGetChanged(environment.getRepositoryFile(), environment.getTransaction(), this,
                    environment.isCopyInfo());
        }
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.admin.SVNLookClient

            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CL_INSUFFICIENT_ARGS,
                    "Missing repository path argument");
            SVNErrorManager.error(err, SVNLogType.CLIENT);
        }
       
        SVNLookClient client = environment.getClientManager().getLookClient();
        SVNProperties props = null;
        if (environment.isRevision()) {
            if (environment.isRevProp()) {
                props = client.doGetRevisionProperties(environment.getRepositoryFile(),
                        getRevisionObject());
            } else {
                props = client.doGetProperties(environment.getRepositoryFile(), environment.getFirstArgument(),
                        getRevisionObject());
            }
        } else {
            if (environment.isRevProp()) {
                props = client.doGetRevisionProperties(environment.getRepositoryFile(),
                        environment.getTransaction());
            } else {
                props = client.doGetProperties(environment.getRepositoryFile(), environment.getFirstArgument(),
                        environment.getTransaction());
            }
        }

        if (props != null) {
            for (Iterator propNamesIter = props.nameSet().iterator(); propNamesIter.hasNext();) {
                String propName = (String) propNamesIter.next();
                SVNPropertyData propData = new SVNPropertyData(propName, props.getSVNPropertyValue(propName),
                        client.getOptions());
                SVNPropertyValue propValue = propData.getValue();
                if (environment.isVerbose()) {
                    environment.getOut().print("  " + propName + " : ");
                    if (propValue.isString()) {
                        environment.getOut().println(propValue.getString());
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.admin.SVNLookClient

        return options;
    }

    public void run() throws SVNException {
        SVNLookCommandEnvironment environment = getSVNLookEnvironment();
        SVNLookClient client = environment.getClientManager().getLookClient();
        SVNLogEntry logEntry = null;
        if (environment.isRevision()) {
            logEntry = client.doGetInfo(environment.getRepositoryFile(),
                    getRevisionObject());
        } else {
            logEntry = client.doGetInfo(environment.getRepositoryFile(), environment.getTransaction());
        }
       
        String author = logEntry.getAuthor() != null ? logEntry.getAuthor() : "";
        String date = logEntry.getDate() != null ? SVNDate.formatCustomDate(logEntry.getDate()) : "";
        String log = logEntry.getMessage() != null ? logEntry.getMessage() : "";
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.admin.SVNLookClient

        } else {
            environment.getOut().println("REVISION   PATH");
            environment.getOut().println("--------   ----");
        }

        SVNLookClient client = environment.getClientManager().getLookClient();
        client.doGetHistory(environment.getRepositoryFile(), environment.getFirstArgument(),
                getRevisionObject(), environment.isShowIDs(), environment.getLimit(),
                this);
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.admin.SVNLookClient

            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CL_INSUFFICIENT_ARGS,
                    "Missing repository path argument");
            SVNErrorManager.error(err, SVNLogType.CLIENT);
        }

        SVNLookClient client = environment.getClientManager().getLookClient();
        if (environment.isRevision()) {
            client.doCat(environment.getRepositoryFile(), path, getRevisionObject(), environment.getOut());
        } else {
            client.doCat(environment.getRepositoryFile(), path, environment.getTransaction(), environment.getOut());
        }
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.admin.SVNLookClient

        return options;
    }

    public void run() throws SVNException {
        SVNLookCommandEnvironment environment = getSVNLookEnvironment();
        SVNLookClient client = environment.getClientManager().getLookClient();

        DefaultSVNGNUDiffGenerator defaultDiffGenerator = new DefaultSVNGNUDiffGenerator();
        defaultDiffGenerator.setOptions(client.getOptions());
        defaultDiffGenerator.setDiffOptions(environment.getDiffOptions());
       
        client.setDiffGenerator(defaultDiffGenerator);
        if (environment.isRevision()) {
            client.doGetDiff(environment.getRepositoryFile(), getRevisionObject(),
                    !environment.isNoDiffDeleted(), !environment.isNoDiffAdded(), environment.isDiffCopyFrom(),
                    environment.getOut());
        } else {
            client.doGetDiff(environment.getRepositoryFile(), environment.getTransaction(),
                    !environment.isNoDiffDeleted(), !environment.isNoDiffAdded(), environment.isDiffCopyFrom(),
                    environment.getOut());
        }
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.wc.admin.SVNLookClient

            SVNErrorManager.error(err, SVNLogType.CLIENT);
        }
       
        String propName = environment.getFirstArgument();
        SVNPropertyValue propValue = null;
        SVNLookClient client = environment.getClientManager().getLookClient();
        if (environment.isRevision()) {
            if (environment.isRevProp()) {
                propValue = client.doGetRevisionProperty(environment.getRepositoryFile(),
                        propName, getRevisionObject());
            } else {
                propValue = client.doGetProperty(environment.getRepositoryFile(), propName,
                        environment.getSecondArgument(), getRevisionObject());
            }
        } else {
            if (environment.isRevProp()) {
                propValue = client.doGetRevisionProperty(environment.getRepositoryFile(),
                        propName, environment.getTransaction());
            } else {
                propValue = client.doGetProperty(environment.getRepositoryFile(), propName,
                        environment.getSecondArgument(), environment.getTransaction());
            }
        }
       
        if (propValue == null) {
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.