question: public static long findRevision ( final List < String > output , final Pattern pattern ) { long revision = - 1 ; for ( final String line : output ) { final Matcher matcher = pattern . matcher ( line ) ; if ( matcher . find ( ) ) { revision = Long . parseLong ( matcher . group ( 1 ) ) ; break ; } } return revision ; }
target:  For the given pattern, find the revision number.