/** * Process the current input line in the Get Revision. * * @param line a line of text from the clearcase log output */ private void processGetRevision( String line ) { if ( line.startsWith( REVISION_TAG ) ) { getCurrentChange().setRevision( line.substring( REVISION_TAG.length() ) ); setStatus( GET_FILE ); } }
/** * Process the current input line in the Get Revision. * * @param line a line of text from the clearcase log output */ private void processGetRevision( String line ) { if ( line.startsWith( REVISION_TAG ) ) { getCurrentChange().setRevision( line.substring( REVISION_TAG.length() ) ); setStatus( GET_FILE ); } }
/** * Process the current input line in the GET_HEADER state. The * author, date, and the revision of the entry are gathered. Note, * Git does not have per-file revisions, instead, the entire * branch is given a single revision number, which is also used for * the revision number of each file. * * @param line A line of text from the git log output */ private void processGetHeader( String line ) { Matcher matcher = HEADER_PATTERN.matcher( line ); if ( !matcher.matches() ) { return; } currentRevision = matcher.group( 1 ); currentChange = new ChangeSet(); currentChange.setRevision( currentRevision ); status = STATUS_GET_AUTHOR; }
/** * Process the current input line in the GET_HEADER state. The * author, date, and the revision of the entry are gathered. Note, * Git does not have per-file revisions, instead, the entire * branch is given a single revision number, which is also used for * the revision number of each file. * * @param line A line of text from the git log output */ private void processGetHeader( String line ) { Matcher matcher = HEADER_PATTERN.matcher( line ); if ( !matcher.matches() ) { return; } currentRevision = matcher.group( 1 ); currentChange = new ChangeSet(); currentChange.setRevision( currentRevision ); status = STATUS_GET_AUTHOR; }
/** * Process one line of output from the execution of the "scm xxxx" command. * * @param line The line of output from the external command that has been pumped to us. * @see org.codehaus.plexus.util.cli.StreamConsumer#consumeLine(java.lang.String) */ public void consumeLine( String line ) { super.consumeLine( line ); Matcher matcher = CHANGESET_PATTERN.matcher( line ); if ( matcher.find() ) { String changesetAlias = matcher.group( 1 ); ChangeSet changeSet = new ChangeSet(); changeSet.setRevision( changesetAlias ); entries.add( changeSet ); } } }
/** * Process one line of output from the execution of the "scm xxxx" command. * * @param line The line of output from the external command that has been pumped to us. * @see org.codehaus.plexus.util.cli.StreamConsumer#consumeLine(java.lang.String) */ public void consumeLine( String line ) { super.consumeLine( line ); Matcher matcher = CHANGESET_PATTERN.matcher( line ); if ( matcher.find() ) { String changesetAlias = matcher.group( 1 ); ChangeSet changeSet = new ChangeSet(); changeSet.setRevision( changesetAlias ); entries.add( changeSet ); } } }
/** * Most of the relevant info is on the revision line matching the * 'pattern' string. * * @param line A line of text from the perforce log output */ private void processGetRevision( String line ) { if ( line.startsWith( FILE_BEGIN_TOKEN ) ) { currentFile = line.substring( repoPath.length() + 1 ); return; } Matcher matcher = PATTERN.matcher( line ); if ( !matcher.find() ) { return; } currentChange = new ChangeSet(); currentChange.setRevision( matcher.group( 1 ) ); currentChange.setDate( parseDate( matcher.group( 3 ), userDatePattern, PERFORCE_TIMESTAMP_PATTERN ) ); currentChange.setAuthor( matcher.group( 4 ) ); status = GET_COMMENT_BEGIN; }
/** * Most of the relevant info is on the revision line matching the * 'pattern' string. * * @param line A line of text from the perforce log output */ private void processGetRevision( String line ) { if ( line.startsWith( FILE_BEGIN_TOKEN ) ) { currentFile = line.substring( repoPath.length() + 1 ); return; } Matcher matcher = PATTERN.matcher( line ); if ( !matcher.find() ) { return; } currentChange = new ChangeSet(); currentChange.setRevision( matcher.group( 1 ) ); currentChange.setDate( parseDate( matcher.group( 3 ), userDatePattern, PERFORCE_TIMESTAMP_PATTERN ) ); currentChange.setAuthor( matcher.group( 4 ) ); status = GET_COMMENT_BEGIN; }
currentChange.setRevision( currentRevision );
currentChange.setRevision( currentRevision );
changeSet.setRevision( String.valueOf( changelistSummary.getId() ) ); if ( files != null )
scmChange.setComment( change.getBody() ); scmChange.setDate( change.getAuthorDate() ); scmChange.setRevision( change.getCommitHash() );
scmChange.setComment( change.getBody() ); scmChange.setDate( change.getAuthorDate() ); scmChange.setRevision( change.getCommitHash() );