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-api/src/main/java/org/apache/maven/scm/manager DefaultScmManager.java ScmManager.java
Date Wed, 22 Dec 2004 08:04:40 GMT
brett       2004/12/22 00:04:40

  Modified:    maven-scm-api/src/main/java/org/apache/maven/scm/manager
                        DefaultScmManager.java ScmManager.java
  Log:
  handle tagging
  
  Revision  Changes    Path
  1.5       +14 -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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DefaultScmManager.java	20 Dec 2004 17:56:19 -0000	1.4
  +++ DefaultScmManager.java	22 Dec 2004 08:04:40 -0000	1.5
  @@ -30,6 +30,7 @@
   import org.apache.maven.scm.command.changelog.ChangeLogScmResult;
   import org.apache.maven.scm.command.checkin.CheckInScmResult;
   import org.apache.maven.scm.command.checkout.CheckOutScmResult;
  +import org.apache.maven.scm.command.tag.TagScmResult;
   import org.apache.maven.scm.command.update.UpdateScmResult;
   import org.apache.maven.scm.provider.AbstractScmProvider;
   import org.apache.maven.scm.provider.ScmProvider;
  @@ -151,6 +152,18 @@
           ScmResult scmResult = execute( CommandNameConstants.CHECK_IN, repository, workingDirectory,
parameters );
   
           return (CheckInScmResult) checkScmResult( CheckInScmResult.class, scmResult );
  +    }
  +
  +    public TagScmResult tag( ScmRepository repository, File workingDirectory, String tag
)
  +        throws ScmException
  +    {
  +        CommandParameters parameters = new CommandParameters();
  +
  +        parameters.setString( CommandParameter.TAG, tag );
  +
  +        ScmResult scmResult = execute( CommandNameConstants.TAG, repository, workingDirectory,
parameters );
  +
  +        return (TagScmResult) checkScmResult( TagScmResult.class, scmResult );
       }
   
       public UpdateScmResult update( ScmRepository repository, File workingDirectory, String
tag )
  
  
  
  1.3       +5 -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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ScmManager.java	26 Oct 2004 12:37:06 -0000	1.2
  +++ ScmManager.java	22 Dec 2004 08:04:40 -0000	1.3
  @@ -23,6 +23,7 @@
   import org.apache.maven.scm.command.changelog.ChangeLogScmResult;
   import org.apache.maven.scm.command.checkin.CheckInScmResult;
   import org.apache.maven.scm.command.checkout.CheckOutScmResult;
  +import org.apache.maven.scm.command.tag.TagScmResult;
   import org.apache.maven.scm.command.update.UpdateScmResult;
   import org.apache.maven.scm.repository.ScmRepository;
   import org.apache.maven.scm.repository.ScmRepositoryException;
  @@ -53,6 +54,9 @@
       	throws ScmException;
   
       UpdateScmResult update( ScmRepository repository, File workingDirectory, String tag
)
  +        throws ScmException;
  +
  +    TagScmResult tag( ScmRepository repository, File workingDirectory, String tag )
           throws ScmException;
   
       ChangeLogScmResult changeLog( ScmRepository repository, File workingDirectory, Date
startDate, Date endDate, int numDays, String branch )
  
  
  

Mime
View raw message