Examples of SVNLogEntry


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

            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);
        } finally {
            SVNAdminHelper.closeRepository(fsfs);
        }
    }
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);
        } finally {
            SVNAdminHelper.closeRepository(fsfs);
        }
    }
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

                // In order to get history is "descending" order, the startRevision should be the one closer to HEAD
                logClient.doLog(svnUrl, targetPaths, /* pegRevision */ SVNRevision.HEAD, svnRevision, SVNRevision.create(1),
                                /* stopOnCopy */ false, /* discoverChangedPaths */ false, /* includeMergedRevisions */ false,
                                /* limit */ 1,
                                new String[]{SVNRevisionProperty.LOG}, handler);
                final SVNLogEntry entry = handler.getLogEntries().size() > 0 ? handler.getLogEntries().get(0) : null;
                return entry == null ? "-1" : String.valueOf(entry.getRevision());
            }

            @Override
            public StoreException handleException(final Exception e) throws StoreException {
                throw new StoreException.ReadException("Unable to get latest revision", e);
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

                final int end = Math.min(start + limit, entries.size());

                revisions = Lists.newArrayListWithCapacity(end - start);

                for (int i = 0; i < end - start; i++) {
                    final SVNLogEntry entry = entries.get(start + i);
                    revisions.add(new Revision(String.valueOf(entry.getRevision()), entry.getAuthor(), entry.getDate(), entry.getMessage()));
                }
            }
            return revisions;
        } catch (final SVNException e) {
            throw new StoreException.ReadException("Unable to get older revisions");
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

                        returned by svn list --verbose directory is different from that of svn log directory/sub-dir
                        The revision returned by svn list is the revision of the on the source-dir instead of the destination-dir
                        The code below checks to see if the directory at the provided revision exists, if it does it will use this revision.
                        If the directory does does not exist, try and identify the correct revision using svn log.
                     */
                    final SVNLogEntry log = getMostRecentLogEntry(clientManager, testDefPath + "/" + testDefFile.getRelativePath(), svnRevision);
                    if (log != null && log.getRevision() != testDefFile.getRevision()) {
                        // The difference in the log.revision and the list.revision can occur during an ( svn cp )
                        if (LOGGER.isDebugEnabled()) {
                            LOGGER.debug("svn log r" + log.getRevision() + " is different than svn list r" + testDefFile.getRevision() + " for " + testDefFile.getURL());
                        }
                        testRevision = log.getRevision();
                    } else {
                        testRevision = testDefFile.getRevision();
                    }

                    tests.add(new TestVersionResult.Test(testName, String.valueOf(testRevision)));
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
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.