maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject git commit: [SCM-709] Always warn if line doesn't match any of the regexps
Date Thu, 03 Jan 2013 16:57:48 GMT
Updated Branches:
  refs/heads/master c96ca2477 -> fa5b0dd8f


[SCM-709] Always warn if line doesn't match any of the regexps


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

Branch: refs/heads/master
Commit: fa5b0dd8f01da05f2e67be412bff231a620c295c
Parents: c96ca24
Author: rfscholte <rfscholte@apache.org>
Authored: Thu Jan 3 17:57:12 2013 +0100
Committer: rfscholte <rfscholte@apache.org>
Committed: Thu Jan 3 17:57:12 2013 +0100

----------------------------------------------------------------------
 .../gitexe/command/status/GitStatusConsumer.java   |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-scm/blob/fa5b0dd8/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/status/GitStatusConsumer.java
----------------------------------------------------------------------
diff --git a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/status/GitStatusConsumer.java
b/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/status/GitStatusConsumer.java
index d9cc75a..11c541a 100644
--- a/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/status/GitStatusConsumer.java
+++ b/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/status/GitStatusConsumer.java
@@ -152,6 +152,11 @@ public class GitStatusConsumer
             logger.debug( "RENAMED status for line '" + line + "' files added '" + renamedRegexp.getParen(
1 ) + "' '"
                               + renamedRegexp.getParen( 2 ) );
         }
+        else
+        {
+        	logger.warn( "Ignoring unrecognized line: " +  line );
+        	return;
+        }
 
         // If the file isn't a file; don't add it.
         if ( !files.isEmpty() && status != null )


Mime
View raw message