org.codehaus.mojo.scmchangelog.scm.hg.command.list
Class HgListCommand

java.lang.Object
  extended by org.apache.maven.scm.command.AbstractCommand
      extended by org.apache.maven.scm.command.list.AbstractListCommand
          extended by org.codehaus.mojo.scmchangelog.scm.hg.command.list.HgListCommand
All Implemented Interfaces:
org.apache.maven.scm.command.Command

public class HgListCommand
extends org.apache.maven.scm.command.list.AbstractListCommand

List command for Mercurial : the command used is: hg tags --verbose path

Version:
$Id: HgListCommand.java 8980 2009-02-04 09:55:20Z ehsavoie $
Author:
ehsavoie

Field Summary
static String TAGS_CMD
          The name of the Tag tag in Mercurial.
static String TRUNK_TAG
          The name of the Trunk/HEAD tag in Mercurial.
 
Fields inherited from interface org.apache.maven.scm.command.Command
ROLE
 
Constructor Summary
HgListCommand(Pattern filter)
          Creates a new instance of HgListCommand.
 
Method Summary
protected  org.apache.maven.scm.command.list.ListScmResult executeListCommand(org.apache.maven.scm.provider.ScmProviderRepository repository, org.apache.maven.scm.ScmFileSet fileSet, boolean recursive, org.apache.maven.scm.ScmVersion version)
          Executes a hg tags --verbose path command.
 
Methods inherited from class org.apache.maven.scm.command.list.AbstractListCommand
executeCommand
 
Methods inherited from class org.apache.maven.scm.command.AbstractCommand
execute, getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAGS_CMD

public static final String TAGS_CMD
The name of the Tag tag in Mercurial.

See Also:
Constant Field Values

TRUNK_TAG

public static final String TRUNK_TAG
The name of the Trunk/HEAD tag in Mercurial.

See Also:
Constant Field Values
Constructor Detail

HgListCommand

public HgListCommand(Pattern filter)
Creates a new instance of HgListCommand.

Parameters:
filter - the filter on the tag names to be used.
Method Detail

executeListCommand

protected org.apache.maven.scm.command.list.ListScmResult executeListCommand(org.apache.maven.scm.provider.ScmProviderRepository repository,
                                                                             org.apache.maven.scm.ScmFileSet fileSet,
                                                                             boolean recursive,
                                                                             org.apache.maven.scm.ScmVersion version)
                                                                      throws org.apache.maven.scm.ScmException
Executes a hg tags --verbose path command.

Specified by:
executeListCommand in class org.apache.maven.scm.command.list.AbstractListCommand
Parameters:
repository - the mercurial repository.
fileSet - the list of files.
recursive - true if we want a recursive list command - false otherwise.
version - the version target (branch, tags, trunk).
Returns:
a ListScmResult containing a List>Tag<.
Throws:
org.apache.maven.scm.ScmException - in case of an error with the scm command.


Copyright © 2008-2009 Codehaus. All Rights Reserved.