continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r384511 - /maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
Date Thu, 09 Mar 2006 13:46:09 GMT
Author: evenisse
Date: Thu Mar  9 05:46:07 2006
New Revision: 384511

URL: http://svn.apache.org/viewcvs?rev=384511&view=rev
Log:
Print the nb of updated files

Modified:
    maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java

Modified: maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java?rev=384511&r1=384510&r2=384511&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
(original)
+++ maven/continuum/branches/continuum-1.0.x/continuum-core/src/main/java/org/apache/maven/continuum/scm/DefaultContinuumScm.java
Thu Mar  9 05:46:07 2006
@@ -233,12 +233,15 @@
 
             ScmResult result;
 
+            UpdateScmResult scmResult;
+
             ScmFileSet fileSet = new ScmFileSet( workingDirectory );
 
             synchronized ( this )
             {
-                result = convertScmResult( scmManager.getProviderByRepository( repository
)
-                    .update( repository, fileSet, tag, getLatestUpdateDate( project ) ) );
+                scmResult = scmManager.getProviderByRepository( repository )
+                    .update( repository, fileSet, tag, getLatestUpdateDate( project ) );
+                result = convertScmResult( scmResult );
             }
 
             if ( !result.isSuccess() )
@@ -251,8 +254,10 @@
                 getLogger().warn( "Provider message: " + result.getProviderMessage() );
             }
 
-            // TODO: total the number of files in the changesets
-//            getLogger().info( "Updated " + result.getFiles().size() + " files." );
+            if ( scmResult.getUpdatedFiles() != null && scmResult.getUpdatedFiles().size()
> 0 )
+            {
+                getLogger().info( "Updated " + scmResult.getUpdatedFiles().size() + " files."
);
+            }
 
             return result;
         }



Mime
View raw message