Package org.tmatesoft.svn.core.wc

Examples of org.tmatesoft.svn.core.wc.SVNLogClient


        SVNRevision youngestRev = SVNRevision.create(youngestRange.getEndRevision());
        SVNMergeRange oldestRange = listRanges[0];
        SVNRevision oldestRev = SVNRevision.create(oldestRange.getStartRevision());
           
        LogHandlerFilter filterHandler = new LogHandlerFilter(handler, rangeList);
        SVNLogClient logClient = getLogClient();
        logClient.doLog(reposRootURL, paths, youngestRev, oldestRev, youngestRev, false, discoverChangedPaths,
                false, 0, revProps, filterHandler);
        checkCancelled();
    }
View Full Code Here


        return adjustedProperties;
    }

    protected SVNLogClient getLogClient() {
        if (myLogClient == null) {
            myLogClient = new SVNLogClient(getRepositoryPool(), getOptions());
        }
        return myLogClient;
    }
View Full Code Here

    }

    private void dumpRepositoryContents() throws SVNException {
        System.out.println("Repository contents:");
        SVNURL repoURL = SVNURL.parseURIEncoded( "svn://localhost/");
        SVNLogClient logClient = new SVNLogClient((ISVNAuthenticationManager)null, null);
        logClient.doList(repoURL, SVNRevision.HEAD, SVNRevision.HEAD, false, true, new ISVNDirEntryHandler() {
            @Override
            public void handleDirEntry(SVNDirEntry dirEntry) throws SVNException {
                System.out.println(dirEntry.getRelativePath());
            }
        });
View Full Code Here

    /** */
    @Override
    public void execute() throws Exception
    {
        SVNLogClient client = this.getTask().getSvnClient().getLogClient();
        SVNRevision start = SVNRevision.parse(this.startRevision);
        SVNRevision end = SVNRevision.parse(this.endRevision);

        final StringBuilder logBuffer = new StringBuilder(1024);
        if (this.url == null)
        {
            File filePath = new File(this.path);
            this.getTask().log("log " + filePath.getCanonicalPath() + " " + start.toString() + ":" + end.toString());
            client.doLog(new File[] { filePath }, end, start, end, this.stopOnCopy, this.discoverChangedPaths, this.includeMergedRevisions, this.limit, new String[] { }, this.getLogEntryHandler(logBuffer));
        }
        else
        {
            String path = (this.path == null || "".equals(this.path)) ? "/" : this.path;
            this.getTask().log("log " + this.url + (("/".equals(path)) ? "" : path) + " " + start.toString() + ":" + end.toString());
            client.doLog(SVNURL.parseURIDecoded(this.url), new String[] { path }, end, start, end, this.stopOnCopy, this.discoverChangedPaths, this.includeMergedRevisions, this.limit, new String[] { }, this.getLogEntryHandler(logBuffer));
        }

        logBuffer.append(ITEM_SEPARATOR + LINE_SEPARATOR);

        this.getProject().setProperty(this.logProperty, logBuffer.toString());
View Full Code Here

    try {
      final List<Commit> ret = new ArrayList<Commit>();
      SVNURL svnUrl = SVNURL.parseURIDecoded(url);
      SVNClientManager clientManager = SVNClientManager.newInstance(
          new DefaultSVNOptions(), username, password);
      SVNLogClient logClient = clientManager.getLogClient();
      logClient.doLog(svnUrl, new String[] { "." }, SVNRevision.HEAD,
          SVNRevision.HEAD, SVNRevision.create(0), true, true, 10,
          new ISVNLogEntryHandler() {
            @Override
            public void handleLogEntry(SVNLogEntry logEntry)
                throws SVNException {
View Full Code Here

TOP

Related Classes of org.tmatesoft.svn.core.wc.SVNLogClient

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.