Examples of SVNLogEntry


Examples of org.tmatesoft.svn.core.SVNLogEntry

            changedPaths = new SVNHashMap();
        }
        if (entryRevProps == null) {
            entryRevProps = new SVNProperties();
        }
        SVNLogEntry entry = new SVNLogEntry(changedPaths, revision, entryRevProps, false);
        return entry;
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

        long revNum = SVNAdminHelper.getRevisionNumber(revision, fsfs.getYoungestRevision(), fsfs);
        SVNProperties revProps = fsfs.getRevisionProperties(revNum);
        String date = revProps.getStringValue(SVNRevisionProperty.DATE);
        String author = revProps.getStringValue(SVNRevisionProperty.AUTHOR);
        String logMessage = revProps.getStringValue(SVNRevisionProperty.LOG);
        return new SVNLogEntry(null, revNum, author, SVNDate.parseDateString(date), logMessage);
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

        SVNProperties txnProps = fsfs.getTransactionProperties(txn.getTxnId());
        String date = txnProps.getStringValue(SVNRevisionProperty.DATE);
        String author = txnProps.getStringValue(SVNRevisionProperty.AUTHOR);
        String logMessage = txnProps.getStringValue(SVNRevisionProperty.LOG);
        return new SVNLogEntry(null, -1, author, SVNDate.parseDateString(date), logMessage);
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

                            }
                        }
                    }
                }
                if (handler != null && !(limit > 0 && count > limit && nestLevel == 0)) {
                    SVNLogEntry logEntry = new SVNLogEntry(changedPathsMap, revision, logEntryProperties, hasChildren);
                    handler.handleLogEntry(logEntry);
                    if (logEntry.hasChildren()) {
                        nestLevel++;
                    }
                    if (logEntry.getRevision() < 0) {
                        nestLevel--;
                        if (nestLevel < 0) {
                            nestLevel = 0;
                        }
                    }
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

                    myRevProps.put(SVNRevisionProperty.LOG, myComment);
                }
                if (myDate != null) {
                    myRevProps.put(SVNRevisionProperty.DATE, SVNDate.formatDate(myDate));
                }
                SVNLogEntry logEntry = new SVNLogEntry(myPaths, myRevision, myRevProps, myHasChildren);
                myLogEntryHandler.handleLogEntry(logEntry);
                if (logEntry.hasChildren()) {
                    myNestLevel++;
                }
                if (logEntry.getRevision() < 0) {
                    myNestLevel = myNestLevel <= 0 ? 0 : myNestLevel -1;
                }
            }
            myPaths = null;
            myRevProps = null;
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

        }
        return nextRevision;
    }

    private void sendLog(long revision, boolean hasChildren) throws SVNException {
        SVNLogEntry logEntry = fillLogEntry(revision);
        logEntry.setHasChildren(hasChildren);
        if (myHandler != null) {
            myHandler.handleLogEntry(logEntry);
        }
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

            changedPaths = new SVNHashMap();
        }
        if (entryRevProps == null) {
            entryRevProps = new SVNProperties();
        }
        SVNLogEntry entry = new SVNLogEntry(changedPaths, revision, entryRevProps, false);
        return entry;
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

        if (!myIsRootOpened) {
            wrappedEditor.openRoot(myBaseRevision);
        }
        myCommitInfo = wrappedEditor.closeEdit();
        if (myHandler != null) {
            SVNLogEntry logEntry = new SVNLogEntry(null, myCommitInfo.getNewRevision(),
                    myCommitInfo.getAuthor(), myCommitInfo.getDate(), null);
            myHandler.handleLogEntry(logEntry);
        }
        return myCommitInfo;
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

    public void doLog(SVNURL url, long fromRevision,
            long toRevision, SvnLogEntryHandler logEntryHandler)
        throws SVNException {
        for(long i=fromRevision; i<=toRevision; i++) {
            logEntryHandler.handleLogEntry(   
                    new SVNLogEntry(
                            Collections.EMPTY_MAP, i,
                            (i%2==0)?"sergio":"ivan",
                            new Date(), ""));
        }
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

    }

    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() : "";
        environment.getOut().println(author);
        environment.getOut().println(date);
        if (log == null || log.length() == 0) {
            environment.getOut().println("0");
        } else {
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.