Package org.tmatesoft.svn.core.wc.admin

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


     *
     * @return an <b>SVNLookClient</b> instance
     */
    public SVNLookClient getLookClient() {
        if (myLookClient == null) {
            myLookClient = new SVNLookClient(this, myOptions);
            myLookClient.setEventHandler(myEventHandler);
            myLookClient.setDebugLog(getDebugLog());
            myLookClient.setIgnoreExternals(myIsIgnoreExternals);
        }
        return myLookClient;
View Full Code Here


     *
     * @return an <b>SVNLookClient</b> instance
     */
    public SVNLookClient getLookClient() {
        if (myLookClient == null) {
            myLookClient = new SVNLookClient(this, myOptions);
            myLookClient.setEventHandler(myEventHandler);
            myLookClient.setDebugLog(getDebugLog());
        }
        return myLookClient;
    }
View Full Code Here

        }
       
        File reposRoot = new File(getCommandLine().getPathAt(0))
        myOut = out;
        SVNRevision revision = SVNRevision.HEAD;
        SVNLookClient lookClient = getClientManager().getLookClient();
        boolean isCopyInfoIncluded = getCommandLine().hasArgument(SVNArgument.COPY_INFO);
       
        if (getCommandLine().hasArgument(SVNArgument.TRANSACTION)) {
            String transactionName = (String) getCommandLine().getArgumentValue(SVNArgument.TRANSACTION);
            lookClient.doGetChanged(reposRoot, transactionName, this, isCopyInfoIncluded);
            return;
        } else if (getCommandLine().hasArgument(SVNArgument.REVISION)) {
            revision = SVNRevision.parse((String) getCommandLine().getArgumentValue(SVNArgument.REVISION));
        }
       
        lookClient.doGetChanged(reposRoot, revision, this, isCopyInfoIncluded);
    }
View Full Code Here

            System.exit(1);
        }
        File reposRoot = new File(getCommandLine().getPathAt(0))

        SVNRevision revision = SVNRevision.HEAD;
        SVNLookClient lookClient = getClientManager().getLookClient();

        if (getCommandLine().hasArgument(SVNArgument.TRANSACTION)) {
            String transactionName = (String) getCommandLine().getArgumentValue(SVNArgument.TRANSACTION);
            String author = lookClient.doGetAuthor(reposRoot, transactionName);
            SVNCommand.println(out, author != null ? author : "");
            return;
        } else if (getCommandLine().hasArgument(SVNArgument.REVISION)) {
            revision = SVNRevision.parse((String) getCommandLine().getArgumentValue(SVNArgument.REVISION));
        }
        String author = lookClient.doGetAuthor(reposRoot, revision);
        SVNCommand.println(out, author != null ? author : "");
    }
View Full Code Here

        myIsIncludeIDs = getCommandLine().hasArgument(SVNArgument.SHOW_IDS);
        myIsFullPaths = getCommandLine().hasArgument(SVNArgument.FULL_PATHS);
        File reposRoot = new File(getCommandLine().getPathAt(0))
        String path = getCommandLine().getPathCount() < 2 ? null : SVNPathUtil.canonicalizeAbsPath(getCommandLine().getPathAt(1));
        SVNRevision revision = SVNRevision.HEAD;
        SVNLookClient lookClient = getClientManager().getLookClient();
        if (getCommandLine().hasArgument(SVNArgument.TRANSACTION)) {
            String transactionName = (String) getCommandLine().getArgumentValue(SVNArgument.TRANSACTION);
            lookClient.doGetTree(reposRoot, path, transactionName, myIsIncludeIDs, this);
            return;
        } else if (getCommandLine().hasArgument(SVNArgument.REVISION)) {
            revision = SVNRevision.parse((String) getCommandLine().getArgumentValue(SVNArgument.REVISION));
        }
        lookClient.doGetTree(reposRoot, path, revision, myIsIncludeIDs, this);
    }
View Full Code Here

            SVNCommand.println(err, "jsvnlook: Repository argument required");
            System.exit(1);
        }
        File reposRoot = new File(getCommandLine().getPathAt(0))
        SVNRevision revision = SVNRevision.HEAD;
        SVNLookClient lookClient = getClientManager().getLookClient();
       
        if (getCommandLine().hasArgument(SVNArgument.TRANSACTION)) {
            String transactionName = (String) getCommandLine().getArgumentValue(SVNArgument.TRANSACTION);
            String log = lookClient.doGetLog(reposRoot, transactionName);
            SVNCommand.println(out, log != null ? log : "");
            return;
        } else if (getCommandLine().hasArgument(SVNArgument.REVISION)) {
            revision = SVNRevision.parse((String) getCommandLine().getArgumentValue(SVNArgument.REVISION));
        }
        String log = lookClient.doGetLog(reposRoot, revision);
        SVNCommand.println(out, log != null ? log : "");
    }
View Full Code Here

            System.exit(1);
        }
        File reposRoot = new File(getCommandLine().getPathAt(0))
        myOut = out;
        SVNRevision revision = SVNRevision.HEAD;
        SVNLookClient lookClient = getClientManager().getLookClient();
        if (getCommandLine().hasArgument(SVNArgument.TRANSACTION)) {
            String transactionName = (String) getCommandLine().getArgumentValue(SVNArgument.TRANSACTION);
            lookClient.doGetChangedDirectories(reposRoot, transactionName, this);
            return;
        } else if (getCommandLine().hasArgument(SVNArgument.REVISION)) {
            revision = SVNRevision.parse((String) getCommandLine().getArgumentValue(SVNArgument.REVISION));
        }
        lookClient.doGetChangedDirectories(reposRoot, revision, this);
    }
View Full Code Here

        boolean diffAdded = !getCommandLine().hasArgument(SVNArgument.NO_DIFF_ADDED);
        boolean diffDeleted = !getCommandLine().hasArgument(SVNArgument.NO_DIFF_DELETED);
        boolean diffCopyFrom = !getCommandLine().hasArgument(SVNArgument.DIFF_COPY_FROM);

        SVNRevision revision = SVNRevision.HEAD;
        SVNLookClient lookClient = getClientManager().getLookClient();
        if (getCommandLine().hasArgument(SVNArgument.TRANSACTION)) {
            String transactionName = (String) getCommandLine().getArgumentValue(SVNArgument.TRANSACTION);
            lookClient.doGetDiff(reposRoot, transactionName, diffDeleted, diffAdded, diffCopyFrom, out);
            return;
        } else if (getCommandLine().hasArgument(SVNArgument.REVISION)) {
            revision = SVNRevision.parse((String) getCommandLine().getArgumentValue(SVNArgument.REVISION));
        }
        lookClient.doGetDiff(reposRoot, revision, diffDeleted, diffAdded, diffCopyFrom, out);
    }
View Full Code Here

            System.exit(1);
        }
        File reposRoot = new File(getCommandLine().getPathAt(0))

        SVNRevision revision = SVNRevision.HEAD;
        SVNLookClient lookClient = getClientManager().getLookClient();

        if (getCommandLine().hasArgument(SVNArgument.TRANSACTION)) {
            String transactionName = (String) getCommandLine().getArgumentValue(SVNArgument.TRANSACTION);
            Date date = lookClient.doGetDate(reposRoot, transactionName);
            String dateStamp = date != null ? formatDate(date) : "";
            SVNCommand.println(out, dateStamp);
            return;
        } else if (getCommandLine().hasArgument(SVNArgument.REVISION)) {
            revision = SVNRevision.parse((String) getCommandLine().getArgumentValue(SVNArgument.REVISION));
        }
        Date date = lookClient.doGetDate(reposRoot, revision);
        String dateStamp = date != null ? formatDate(date) : "";
        SVNCommand.println(out, dateStamp);
    }
View Full Code Here

        boolean isRevProp = getCommandLine().hasArgument(SVNArgument.REV_PROP);
        File reposRoot = new File(getCommandLine().getPathAt(0))
        String propertyName = getCommandLine().getPathCount() < 2 ? null : getCommandLine().getPathAt(1);
        SVNRevision revision = SVNRevision.HEAD;
        SVNLookClient lookClient = getClientManager().getLookClient();
       
        if (getCommandLine().hasArgument(SVNArgument.TRANSACTION)) {
            String transactionName = (String) getCommandLine().getArgumentValue(SVNArgument.TRANSACTION);
            String path = null;
            String value = null;
            if (isRevProp) {
                value = lookClient.doGetRevisionProperty(reposRoot, propertyName, transactionName);
            } else {
                path = getCommandLine().getPathCount() < 3 ? null : SVNPathUtil.canonicalizeAbsPath(getCommandLine().getPathAt(2));
                value = lookClient.doGetProperty(reposRoot, propertyName, path, transactionName);
            }
            if (value == null) {
                if (path == null) {
                    SVNCommand.println(err, "Property '" + propertyName + "' not found on transaction '" + transactionName + "'");
                    System.exit(1);
                } else {
                    SVNCommand.println(err, "Property '" + propertyName + "' not found on path '" + path + "' in transaction '" + transactionName + "'");
                    System.exit(1);
                }
            }
            SVNCommand.print(out, value);
            return;
        } else if (getCommandLine().hasArgument(SVNArgument.REVISION)) {
            revision = SVNRevision.parse((String) getCommandLine().getArgumentValue(SVNArgument.REVISION));
        }

        String path = null;
        String value = null;
        if (isRevProp) {
            value = lookClient.doGetRevisionProperty(reposRoot, propertyName, revision);
        } else {
            path = getCommandLine().getPathCount() < 3 ? null : SVNPathUtil.canonicalizeAbsPath(getCommandLine().getPathAt(2));
            value = lookClient.doGetProperty(reposRoot, propertyName, path, revision);
        }
        if (value == null) {
            long revNum = -1;
            if (SVNRevision.isValidRevisionNumber(revision.getNumber())) {
                 revNum = revision.getNumber();
View Full Code Here

TOP

Related Classes of org.tmatesoft.svn.core.wc.admin.SVNLookClient

Copyright © 2018 www.massapicom. 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.