maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-scm/maven-scm-providers/maven-scm-provider-svn/src/main/resources/META-INF/plexus components.xml
Date Thu, 13 Jan 2005 11:22:22 GMT
brett       2005/01/13 03:22:22

  Modified:    maven-scm-api/src/main/java/org/apache/maven/scm
                        CommandNameConstants.java ScmFileStatus.java
               maven-scm-api/src/main/java/org/apache/maven/scm/manager
                        DefaultScmManager.java ScmManager.java
               maven-scm-providers/maven-scm-provider-cvs pom.xml
               maven-scm-providers/maven-scm-provider-cvs/src/main/resources/META-INF/plexus
                        components.xml
               maven-scm-providers/maven-scm-provider-svn/src/main/resources/META-INF/plexus
                        components.xml
  Log:
  implement status checks
  
  Revision  Changes    Path
  1.3       +2 -1      maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/CommandNameConstants.java
  
  Index: CommandNameConstants.java
  ===================================================================
  RCS file: /home/cvs/maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/CommandNameConstants.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CommandNameConstants.java	26 Oct 2004 12:37:05 -0000	1.2
  +++ CommandNameConstants.java	13 Jan 2005 11:22:22 -0000	1.3
  @@ -32,6 +32,7 @@
       public final static String LIST_FILES = "list-liles";
       public final static String LOCK = "lock";
       public final static String REMOVE = "remove";
  +    public final static String STATUS = "status";
       public final static String TAG = "tag";
       public final static String UNLOCK = "unlock";
       public final static String UPDATE = "update";
  
  
  
  1.7       +2 -1      maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/ScmFileStatus.java
  
  Index: ScmFileStatus.java
  ===================================================================
  RCS file: /home/cvs/maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/ScmFileStatus.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ScmFileStatus.java	12 Jan 2005 10:30:53 -0000	1.6
  +++ ScmFileStatus.java	13 Jan 2005 11:22:22 -0000	1.7
  @@ -31,6 +31,7 @@
       public final static ScmFileStatus UPDATED = new ScmFileStatus( "updated" );
       public static final ScmFileStatus TAGGED = new ScmFileStatus( "tagged" );
       public static final ScmFileStatus MODIFIED = new ScmFileStatus( "modified" );
  +    public static final ScmFileStatus UNKNOWN = new ScmFileStatus( "unknown" );
   
       private String name;
   
  
  
  
  1.12      +13 -1     maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/manager/DefaultScmManager.java
  
  Index: DefaultScmManager.java
  ===================================================================
  RCS file: /home/cvs/maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/manager/DefaultScmManager.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- DefaultScmManager.java	10 Jan 2005 11:51:29 -0000	1.11
  +++ DefaultScmManager.java	13 Jan 2005 11:22:22 -0000	1.12
  @@ -27,6 +27,7 @@
   import org.apache.maven.scm.command.checkin.CheckInScmResult;
   import org.apache.maven.scm.command.checkout.CheckOutScmResult;
   import org.apache.maven.scm.command.diff.DiffScmResult;
  +import org.apache.maven.scm.command.status.StatusScmResult;
   import org.apache.maven.scm.command.tag.TagScmResult;
   import org.apache.maven.scm.command.update.UpdateScmResult;
   import org.apache.maven.scm.provider.AbstractScmProvider;
  @@ -44,6 +45,7 @@
   
   /**
    * @author <a href="mailto:trygvis@inamo.no">Trygve Laugst&oslash;l</a>
  + * @author <a href="mailto:brett@apache.org">Brett Porter</a>
    * @version $Id$
    */
   public class DefaultScmManager
  @@ -207,6 +209,16 @@
           ScmResult scmResult = execute( CommandNameConstants.CHANGE_LOG, repository, fileSet,
parameters );
   
           return (ChangeLogScmResult) checkScmResult( ChangeLogScmResult.class, scmResult
);
  +    }
  +
  +    public StatusScmResult status( ScmRepository repository, ScmFileSet fileSet )
  +        throws ScmException
  +    {
  +        CommandParameters parameters = new CommandParameters();
  +
  +        ScmResult scmResult = execute( CommandNameConstants.STATUS, repository, fileSet,
parameters );
  +
  +        return (StatusScmResult) checkScmResult( StatusScmResult.class, scmResult );
       }
   
       public AddScmResult add( ScmRepository repository, ScmFileSet fileSet )
  
  
  
  1.9       +6 -1      maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/manager/ScmManager.java
  
  Index: ScmManager.java
  ===================================================================
  RCS file: /home/cvs/maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/manager/ScmManager.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ScmManager.java	10 Jan 2005 11:51:29 -0000	1.8
  +++ ScmManager.java	13 Jan 2005 11:22:22 -0000	1.9
  @@ -23,6 +23,7 @@
   import org.apache.maven.scm.command.checkin.CheckInScmResult;
   import org.apache.maven.scm.command.checkout.CheckOutScmResult;
   import org.apache.maven.scm.command.diff.DiffScmResult;
  +import org.apache.maven.scm.command.status.StatusScmResult;
   import org.apache.maven.scm.command.tag.TagScmResult;
   import org.apache.maven.scm.command.update.UpdateScmResult;
   import org.apache.maven.scm.repository.ScmRepository;
  @@ -32,6 +33,7 @@
   
   /**
    * @author <a href="mailto:trygvis@inamo.no">Trygve Laugst&oslash;l</a>
  + * @author <a href="mailto:brett@apache.org">Brett Porter</a>
    * @version $Id$
    */
   public interface ScmManager
  @@ -69,5 +71,8 @@
           throws ScmException;
   
       AddScmResult add( ScmRepository repository, ScmFileSet fileSet )
  +        throws ScmException;
  +
  +    StatusScmResult status( ScmRepository repository, ScmFileSet fileSet )
           throws ScmException;
   }
  
  
  
  1.2       +1 -0      maven-scm/maven-scm-providers/maven-scm-provider-cvs/pom.xml
  
  Index: pom.xml
  ===================================================================
  RCS file: /home/cvs/maven-scm/maven-scm-providers/maven-scm-provider-cvs/pom.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- pom.xml	22 Oct 2004 12:29:42 -0000	1.1
  +++ pom.xml	13 Jan 2005 11:22:22 -0000	1.2
  @@ -11,4 +11,5 @@
     <artifactId>maven-scm-provider-cvs</artifactId>
     <version>1.0-alpha-1-SNAPSHOT</version>
     <name>Maven SCM CVS Provider</name>
  +  <build><unitTest><includes><include>**/*Status*</include></includes></unitTest></build>
   </project>
  
  
  
  1.4       +6 -0      maven-scm/maven-scm-providers/maven-scm-provider-cvs/src/main/resources/META-INF/plexus/components.xml
  
  Index: components.xml
  ===================================================================
  RCS file: /home/cvs/maven-scm/maven-scm-providers/maven-scm-provider-cvs/src/main/resources/META-INF/plexus/components.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- components.xml	12 Jan 2005 11:33:30 -0000	1.3
  +++ components.xml	13 Jan 2005 11:22:22 -0000	1.4
  @@ -45,6 +45,12 @@
   
       <component>
         <role>org.apache.maven.scm.provider.cvslib.command.CvsCommand</role>
  +      <role-hint>status</role-hint>
  +      <implementation>org.apache.maven.scm.provider.cvslib.command.status.CvsStatusCommand</implementation>
  +    </component>
  +
  +    <component>
  +      <role>org.apache.maven.scm.provider.cvslib.command.CvsCommand</role>
         <role-hint>tag</role-hint>
         <implementation>org.apache.maven.scm.provider.cvslib.command.tag.CvsTagCommand</implementation>
       </component>
  
  
  
  1.7       +6 -0      maven-scm/maven-scm-providers/maven-scm-provider-svn/src/main/resources/META-INF/plexus/components.xml
  
  Index: components.xml
  ===================================================================
  RCS file: /home/cvs/maven-scm/maven-scm-providers/maven-scm-provider-svn/src/main/resources/META-INF/plexus/components.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- components.xml	10 Jan 2005 11:51:29 -0000	1.6
  +++ components.xml	13 Jan 2005 11:22:22 -0000	1.7
  @@ -39,6 +39,12 @@
   
       <component>
         <role>org.apache.maven.scm.provider.svn.command.SvnCommand</role>
  +      <role-hint>status</role-hint>
  +      <implementation>org.apache.maven.scm.provider.svn.command.status.SvnStatusCommand</implementation>
  +    </component>
  +
  +    <component>
  +      <role>org.apache.maven.scm.provider.svn.command.SvnCommand</role>
         <role-hint>tag</role-hint>
         <implementation>org.apache.maven.scm.provider.svn.command.tag.SvnTagCommand</implementation>
       </component>
  
  
  

Mime
View raw message