maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject git commit: fixed parsing: extract from line, no full line match
Date Mon, 12 May 2014 23:59:28 GMT
Repository: maven-scm
Updated Branches:
  refs/heads/master db5e386ff -> 9cb6fd446


fixed parsing: extract from line, no full line match

Project: http://git-wip-us.apache.org/repos/asf/maven-scm/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-scm/commit/9cb6fd44
Tree: http://git-wip-us.apache.org/repos/asf/maven-scm/tree/9cb6fd44
Diff: http://git-wip-us.apache.org/repos/asf/maven-scm/diff/9cb6fd44

Branch: refs/heads/master
Commit: 9cb6fd44651421c6e023574b7d90af024142edeb
Parents: db5e386
Author: Hervé Boutemy <hboutemy@apache.org>
Authored: Tue May 13 01:59:24 2014 +0200
Committer: Hervé Boutemy <hboutemy@apache.org>
Committed: Tue May 13 01:59:24 2014 +0200

----------------------------------------------------------------------
 .../provider/svn/svnexe/command/blame/SvnBlameConsumer.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-scm/blob/9cb6fd44/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/blame/SvnBlameConsumer.java
----------------------------------------------------------------------
diff --git a/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/blame/SvnBlameConsumer.java
b/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/blame/SvnBlameConsumer.java
index d73cf8b..8e2f17f 100644
--- a/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/blame/SvnBlameConsumer.java
+++ b/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/blame/SvnBlameConsumer.java
@@ -72,20 +72,20 @@ public class SvnBlameConsumer
     public void consumeLine( String line )
     {
         Matcher matcher;
-        if ( ( matcher = LINE_PATTERN.matcher( line ) ).matches() )
+        if ( ( matcher = LINE_PATTERN.matcher( line ) ).find() )
         {
             String lineNumberStr = matcher.group( 1 );
             lineNumber = Integer.parseInt( lineNumberStr );
         }
-        else if ( ( matcher = REVISION_PATTERN.matcher( line ) ).matches() )
+        else if ( ( matcher = REVISION_PATTERN.matcher( line ) ).find() )
         {
             revision = matcher.group( 1 );
         }
-        else if ( ( matcher = AUTHOR_PATTERN.matcher( line ) ).matches() )
+        else if ( ( matcher = AUTHOR_PATTERN.matcher( line ) ).find() )
         {
             author = matcher.group( 1 );
         }
-        else if ( ( matcher = DATE_PATTERN.matcher( line ) ).matches() )
+        else if ( ( matcher = DATE_PATTERN.matcher( line ) ).find() )
         {
             String date = matcher.group( 1 );
             String time = matcher.group( 2 );


Mime
View raw message