/** * Process the current input line in the Get Comment state. * * @param line a line of text from the VSS log output */ private void processGetComment( String line ) { String[] commentLine = line.split( ":" ); if ( commentLine.length == 2 ) { currentChangeSet.setComment( commentLine[1] ); } //Comment suite on a new line else { String comment = currentChangeSet.getComment(); comment = comment + " " + line; currentChangeSet.setComment( comment ); } }
/** * Process the current input line in the Get Comment state. * * @param line a line of text from the VSS log output */ private void processGetComment( String line ) { String[] commentLine = line.split( ":" ); if ( commentLine.length == 2 ) { currentChangeSet.setComment( commentLine[1] ); } //Comment suite on a new line else { String comment = currentChangeSet.getComment(); comment = comment + " " + line; currentChangeSet.setComment( comment ); } }
/** * Process the current input line in the GET_COMMENT state. This * state gathers all of the comments that are part of a log entry. * * @param line a line of text from the perforce log output */ private void processGetComment( String line ) { if ( line.equals( COMMENT_DELIMITER ) ) { status = GET_AFFECTED_FILES; } else { // remove prepended tab currentChange.setComment( currentChange.getComment() + line.substring( 1 ) + "\n" ); } }
/** * Process the current input line in the GET_COMMENT state. This * state gathers all of the comments that are part of a log entry. * * @param line a line of text from the perforce log output */ private void processGetComment( String line ) { if ( line.equals( COMMENT_DELIMITER ) ) { status = GET_AFFECTED_FILES; } else { // remove prepended tab currentChange.setComment( currentChange.getComment() + line.substring( 1 ) + "\n" ); } }
/** * Process the current input line in the GET_COMMENT state. This * state gathers all of the comments that are part of a log entry. * * @param line a line of text from the git log output */ private void processGetComment( String line ) { if ( line.length() < 4 ) { if ( currentComment == null ) { currentComment = new StringBuilder(); } else { currentChange.setComment( currentComment.toString() ); status = STATUS_GET_FILE; } } else { if ( currentComment.length() > 0 ) { currentComment.append( '\n' ); } currentComment.append( line.substring( 4 ) ); } }
/** * Process the current input line in the GET_COMMENT state. This * state gathers all of the comments that are part of a log entry. * * @param line a line of text from the git log output */ private void processGetComment( String line ) { if ( line.length() < 4 ) { if ( currentComment == null ) { currentComment = new StringBuilder(); } else { currentChange.setComment( currentComment.toString() ); status = STATUS_GET_FILE; } } else { if ( currentComment.length() > 0 ) { currentComment.append( '\n' ); } currentComment.append( line.substring( 4 ) ); } }
/** * @param date Date the changes were committed * @param comment comment provided at commit time * @param author User who made changes * @param files The ChangeFile list */ public ChangeSet( Date date, String comment, String author, List<ChangeFile> files ) { setDate( date ); setAuthor( author ); setComment( comment ); this.files = files; }
/** * @param date Date the changes were committed * @param comment comment provided at commit time * @param author User who made changes * @param files The ChangeFile list */ public ChangeSet( Date date, String comment, String author, List<ChangeFile> files ) { setDate( date ); setAuthor( author ); setComment( comment ); this.files = files; }
/** * Process the current input line in the GET_COMMENT state. This * state gathers all of the comments that are part of a log entry. * * @param line a line of text from the perforce log output */ private void processGetComment( String line ) { if ( line.equals( COMMENT_DELIMITER ) ) { addEntry( currentChange, new ChangeFile( currentFile, currentChange.getRevision() ) ); status = GET_REVISION; } else { currentChange.setComment( currentChange.getComment() + line + "\n" ); } } }
/** * Process the current input line in the GET_COMMENT state. This * state gathers all of the comments that are part of a log entry. * * @param line a line of text from the perforce log output */ private void processGetComment( String line ) { if ( line.equals( COMMENT_DELIMITER ) ) { addEntry( currentChange, new ChangeFile( currentFile, currentChange.getRevision() ) ); status = GET_REVISION; } else { currentChange.setComment( currentChange.getComment() + line + "\n" ); } } }
/** * Process the current input line in the Get Comment state. * * @param line a line of text from the clearcase log output */ private void processGetCommentAndUser( String line ) { if ( line.startsWith( COMMENT_TAG ) ) { String comm = line.substring( COMMENT_TAG.length() ); getCurrentChange().setComment( getCurrentChange().getComment() + comm + "\n" ); } else if ( line.startsWith( USER_TAG ) ) { getCurrentChange().setAuthor( line.substring( USER_TAG.length() ) ); // add entry, and set state to get file getCurrentChange().addFile( getCurrentFile() ); entries.add( getCurrentChange() ); setStatus( GET_REVISION ); } else { // keep gathering comments getCurrentChange().setComment( getCurrentChange().getComment() + line + "\n" ); } }
/** * Process the current input line in the Get Comment state. * * @param line a line of text from the clearcase log output */ private void processGetCommentAndUser( String line ) { if ( line.startsWith( COMMENT_TAG ) ) { String comm = line.substring( COMMENT_TAG.length() ); getCurrentChange().setComment( getCurrentChange().getComment() + comm + "\n" ); } else if ( line.startsWith( USER_TAG ) ) { getCurrentChange().setAuthor( line.substring( USER_TAG.length() ) ); // add entry, and set state to get file getCurrentChange().addFile( getCurrentFile() ); entries.add( getCurrentChange() ); setStatus( GET_REVISION ); } else { // keep gathering comments getCurrentChange().setComment( getCurrentChange().getComment() + line + "\n" ); } }
currentChangeSet.setComment( comment );
currentChangeSet.setComment( comment );
/** * Process the current input line in the Get Comment state. * * @param line a line of text from the cvs log output */ private void processGetComment( String line ) { if ( line.startsWith( START_REVISION ) ) { // add entry, and set state to get revision addEntry( getCurrentChange(), getCurrentFile() ); // new change log entry setCurrentChange( new ChangeSet() ); // same file name, but different rev setCurrentFile( new ChangeFile( getCurrentFile().getName() ) ); setStatus( GET_REVISION ); } else if ( line.startsWith( END_FILE ) ) { addEntry( getCurrentChange(), getCurrentFile() ); setStatus( GET_FILE ); } else { // keep gathering comments getCurrentChange().setComment( getCurrentChange().getComment() + line + "\n" ); } }
/** * Process the current input line in the Get Comment state. * * @param line a line of text from the Starteam log output */ private void processGetComment( String line ) { if ( line.startsWith( START_REVISION ) ) { // add entry, and set state to get revision addEntry( getCurrentChange(), getCurrentFile() ); // new change log entry setCurrentChange( new ChangeSet() ); // same file name, but different rev setCurrentFile( new ChangeFile( getCurrentFile().getName() ) ); setStatus( GET_REVISION ); } else if ( line.startsWith( END_FILE ) ) { addEntry( getCurrentChange(), getCurrentFile() ); setStatus( GET_FILE ); } else { // keep gathering comments getCurrentChange().setComment( getCurrentChange().getComment() + line + "\n" ); } }
/** * Process the current input line in the Get Comment state. * * @param line a line of text from the cvs log output */ private void processGetComment( String line ) { if ( line.startsWith( START_REVISION ) ) { // add entry, and set state to get revision addEntry( getCurrentChange(), getCurrentFile() ); // new change log entry setCurrentChange( new ChangeSet() ); // same file name, but different rev setCurrentFile( new ChangeFile( getCurrentFile().getName() ) ); setStatus( GET_REVISION ); } else if ( line.startsWith( END_FILE ) ) { addEntry( getCurrentChange(), getCurrentFile() ); setStatus( GET_FILE ); } else { // keep gathering comments getCurrentChange().setComment( getCurrentChange().getComment() + line + "\n" ); } }
/** * Process the current input line in the Get Comment state. * * @param line a line of text from the cvs log output */ private void processGetComment( String line ) { if ( line.startsWith( START_REVISION ) ) { // add entry, and set state to get revision addEntry( getCurrentChange(), getCurrentFile() ); // new change log entry setCurrentChange( new ChangeSet() ); // same file name, but different rev setCurrentFile( new ChangeFile( getCurrentFile().getName() ) ); setStatus( GET_REVISION ); } else if ( line.startsWith( END_FILE ) ) { addEntry( getCurrentChange(), getCurrentFile() ); setStatus( GET_FILE ); } else { // keep gathering comments getCurrentChange().setComment( getCurrentChange().getComment() + line + "\n" ); } }
/** * Process the current input line in the Get Comment state. * * @param line a line of text from the Starteam log output */ private void processGetComment( String line ) { if ( line.startsWith( START_REVISION ) ) { // add entry, and set state to get revision addEntry( getCurrentChange(), getCurrentFile() ); // new change log entry setCurrentChange( new ChangeSet() ); // same file name, but different rev setCurrentFile( new ChangeFile( getCurrentFile().getName() ) ); setStatus( GET_REVISION ); } else if ( line.startsWith( END_FILE ) ) { addEntry( getCurrentChange(), getCurrentFile() ); setStatus( GET_FILE ); } else { // keep gathering comments getCurrentChange().setComment( getCurrentChange().getComment() + line + "\n" ); } }
cs.setComment( "Task " + t.getNumber() + ": " + t.getComment() ); cs.setDate( t.getModifiedTime() ); cs.setFiles( SynergyUtil.getModifiedObjects( getLogger(), t.getNumber(), ccmAddr ) );