maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r756920 - /maven/scm/trunk/maven-scm-providers/maven-scm-provider-bazaar/src/main/java/org/apache/maven/scm/provider/bazaar/command/checkout/BazaarCheckOutCommand.java
Date Sat, 21 Mar 2009 11:35:01 GMT
Author: olamy
Date: Sat Mar 21 11:35:00 2009
New Revision: 756920

URL: http://svn.apache.org/viewvc?rev=756920&view=rev
Log:
[SCM-313]  baazar : Check out command fails to report an error
just tested scmResult.isSucces and throw an exception


Modified:
    maven/scm/trunk/maven-scm-providers/maven-scm-provider-bazaar/src/main/java/org/apache/maven/scm/provider/bazaar/command/checkout/BazaarCheckOutCommand.java

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-provider-bazaar/src/main/java/org/apache/maven/scm/provider/bazaar/command/checkout/BazaarCheckOutCommand.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-provider-bazaar/src/main/java/org/apache/maven/scm/provider/bazaar/command/checkout/BazaarCheckOutCommand.java?rev=756920&r1=756919&r2=756920&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-provider-bazaar/src/main/java/org/apache/maven/scm/provider/bazaar/command/checkout/BazaarCheckOutCommand.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-provider-bazaar/src/main/java/org/apache/maven/scm/provider/bazaar/command/checkout/BazaarCheckOutCommand.java
Sat Mar 21 11:35:00 2009
@@ -82,7 +82,10 @@
         String[] inventoryCmd = new String[]{BazaarConstants.INVENTORY_CMD};
         BazaarCheckOutConsumer consumer = new BazaarCheckOutConsumer( getLogger(), checkoutDir
);
         ScmResult result = BazaarUtils.execute( consumer, getLogger(), checkoutDir, inventoryCmd
);
-
+        if ( !result.isSuccess() )
+        {
+            throw new ScmException( result.getProviderMessage() );
+        }
         return new CheckOutScmResult( consumer.getCheckedOutFiles(), result );
     }
 }



Mime
View raw message