public void handleLogEntry( SVNLogEntry logEntry ) throws SVNException { List<ChangeFile> changedFiles = new ArrayList<ChangeFile>(); for ( String changedPath : logEntry.getChangedPaths().keySet() ) { changedFiles.add( new ChangeFile( changedPath, Long.toString( logEntry.getRevision() ) ) ); } SvnChangeSet changeSet = new SvnChangeSet( logEntry.getDate(), logEntry.getMessage(), logEntry.getAuthor(), changedFiles ); changeSet.setRevision( Long.toString( logEntry.getRevision() ) ); changeSets.add( changeSet ); }
/** * Process the current input line in the GET_HEADER state. The * author, date, and the revision of the entry are gathered. Note, * Subversion does not have per-file revisions, instead, the entire * repository is given a single revision number, which is used for * the revision number of each file. * * @param line A line of text from the svn log output */ private void processGetHeader( String line ) { Matcher matcher = HEADER_REG_EXP.matcher( line ); if ( !matcher.matches() ) { // The header line is not found. Intentionally do nothing. return; } currentRevision = getRevision( matcher.group( REVISION_GROUP ) ); currentChange = new SvnChangeSet(); currentChange.setAuthor( matcher.group( AUTHOR_GROUP ) ); currentChange.setDate( getDate( matcher.group( DATE_GROUP ) ) ); currentChange.setRevision( currentRevision ); status = GET_FILE; }
/** * Process the current input line in the GET_HEADER state. The * author, date, and the revision of the entry are gathered. Note, * Subversion does not have per-file revisions, instead, the entire * repository is given a single revision number, which is used for * the revision number of each file. * * @param line A line of text from the svn log output */ private void processGetHeader( String line ) { Matcher matcher = HEADER_REG_EXP.matcher( line ); if ( !matcher.matches() ) { // The header line is not found. Intentionally do nothing. return; } currentRevision = getRevision( matcher.group( REVISION_GROUP ) ); currentChange = new SvnChangeSet(); currentChange.setAuthor( matcher.group( AUTHOR_GROUP ) ); currentChange.setDate( getDate( matcher.group( DATE_GROUP ) ) ); currentChange.setRevision( currentRevision ); status = GET_FILE; }