Examples of SVNLogEntry


Examples of org.tmatesoft.svn.core.SVNLogEntry

            if (myLimit <= 0 || myCount <= myLimit) {
          if (myLogEntryHandler != null) {
            if (myPaths == null) {
              myPaths = new HashMap();
            }
            SVNLogEntry logEntry = new SVNLogEntry(myPaths, myRevision, myAuthor, myDate, myComment);
            myLogEntryHandler.handleLogEntry(logEntry);
          }
            } else if (myLimit < myCount) {
                myIsCompatibleMode = true;
            }
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

                        Date date = SVNReader.getDate(buffer, 2);
                        if (date == SVNTimeUtil.NULL) {
                            date = null;
                        }
                        String message = SVNReader.getString(buffer, 3);
                        handler.handleLogEntry(new SVNLogEntry(changedPathsMap, revision, author, date, message));
                    }
                } catch (SVNException e) {
                    if (e instanceof SVNCancelException || e instanceof SVNAuthenticationException) {
                        throw e;
                    }
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

        if (revNum > 0 && discoverChangedPaths) {
            FSRevisionRoot root = myFSFS.createRevisionRoot(revNum);
            changedPaths = root.detectChanged();
        }
        changedPaths = changedPaths == null ? new HashMap() : changedPaths;
        handler.handleLogEntry(new SVNLogEntry(changedPaths, revNum, author, date, message));
    }
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

            rutaParcial = (String)parametroRutaParcial.getValor();
            indexRutaParcial = rutaParcial.length();
        }
           
        for (Iterator entries = coleccion.iterator(); entries.hasNext();) {
            SVNLogEntry logEntry = (SVNLogEntry) entries.next();
            SVNLogEntrada logEntrada = new SVNLogEntrada(entrada, entrada.getPath(), logEntry );
            logEntrada.setTipoEntrada( getLogEntradaTipo(logEntrada) );
                
           
            Iterator it = logEntry.getChangedPaths().keySet().iterator();
            ArrayList<SVNLogRutaEntrada> logRutas = new ArrayList<SVNLogRutaEntrada>();
           
            while(it.hasNext()) {
                SVNLogEntryPath entryPath = (SVNLogEntryPath) logEntry.getChangedPaths().get(it.next());
                SVNLogRutaEntrada logRutaEntrada = new SVNLogRutaEntrada(logEntrada, entryPath );
                if( (rutaParcial!= null ) ) //TRUNK
                {
                    int indexFrom = logRutaEntrada.getRutaParcial().toUpperCase().lastIndexOf(rutaParcial);
                    if( indexFrom != -1 ) logRutaEntrada.setRutaParcial(logRutaEntrada.getRutaParcial().substring(indexFrom + indexRutaParcial));
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

    }
   

    public SVNLogEntrada getListaLogEntrada(String pathRecibo, long desdeRevisionRecibo)throws SVNException {
        SVNEntrada entrada = this.repositorio.getEntry(pathRecibo, desdeRevisionRecibo);
        SVNLogEntry logEntry = this.repositorio.log(pathRecibo, desdeRevisionRecibo);
        SVNParametro parametroRutaParcial = configuracion.getParametro("RUTA_PARCIAL_DESDE");
        String rutaParcial = null;
        int indexRutaParcial = 0;
        if ((parametroRutaParcial != null) && (parametroRutaParcial.getValor() != null)) // TRUNK
        {
            rutaParcial = (String) parametroRutaParcial.getValor();
            indexRutaParcial = rutaParcial.length();
        }

        SVNLogEntrada logEntrada = new SVNLogEntrada(entrada, pathRecibo, logEntry);
        logEntrada.setTipoEntrada(getLogEntradaTipo(logEntrada));

        Iterator it = logEntry.getChangedPaths().keySet().iterator();
        ArrayList<SVNLogRutaEntrada> logRutas = new ArrayList<SVNLogRutaEntrada>();

        while (it.hasNext()) {
            SVNLogEntryPath entryPath = (SVNLogEntryPath) logEntry.getChangedPaths().get(it.next());
            SVNLogRutaEntrada logRutaEntrada = new SVNLogRutaEntrada(logEntrada, entryPath);
            if ((rutaParcial != null)) // TRUNK
            {
                int indexFrom = logRutaEntrada.getRutaParcial().toUpperCase().lastIndexOf(rutaParcial);
                if (indexFrom != -1)
View Full Code Here

Examples of org.tmatesoft.svn.core.SVNLogEntry

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

Examples of org.tmatesoft.svn.core.SVNLogEntry

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

Examples of org.tmatesoft.svn.core.SVNLogEntry

        SVNRevision revision = SVNRevision.HEAD;
        SVNLookClient lookClient = getClientManager().getLookClient();
       
        if (getCommandLine().hasArgument(SVNArgument.TRANSACTION)) {
            String transactionName = (String) getCommandLine().getArgumentValue(SVNArgument.TRANSACTION);
            SVNLogEntry entry = lookClient.doGetInfo(reposRoot, transactionName);
            printInfo(entry, out);
            return;
        } else if (getCommandLine().hasArgument(SVNArgument.REVISION)) {
            revision = SVNRevision.parse((String) getCommandLine().getArgumentValue(SVNArgument.REVISION));
        }

        SVNLogEntry entry = lookClient.doGetInfo(reposRoot, revision);
        printInfo(entry, out);
    }
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

        }
        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
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.