hudson.plugins.mercurial
Class MercurialTagAction

java.lang.Object
  extended by hudson.scm.SCMRevisionState
      extended by hudson.plugins.mercurial.MercurialTagAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject

@ExportedBean(defaultVisibility=999)
public class MercurialTagAction
extends hudson.scm.SCMRevisionState

Action contributed to AbstractBuild from Mercurial.

Currently it just remembers the revision ID, but we want to extend this to cover tagging.


Field Summary
 String id
          160-bit node name, e.g.
 
Fields inherited from class hudson.scm.SCMRevisionState
NONE
 
Constructor Summary
MercurialTagAction(String id)
           
 
Method Summary
 String getDisplayName()
           
 String getIconFileName()
           
 String getId()
           
 String getShortId()
          Mercurial often uses a short ID form that consists of 12 letters.
 String getUrlName()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public final String id
160-bit node name, e.g. 5703b34f17d5fec7bbff2f360c0b6c3d0b952f65 from hg log -r . --template '{node}'

Constructor Detail

MercurialTagAction

public MercurialTagAction(@NonNull
                          String id)
Method Detail

getId

@Exported(name="mercurialNodeName")
public String getId()

getShortId

public String getShortId()
Mercurial often uses a short ID form that consists of 12 letters.


toString

public String toString()
Overrides:
toString in class Object

getIconFileName

public String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action
Overrides:
getIconFileName in class hudson.scm.SCMRevisionState

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject
Overrides:
getDisplayName in class hudson.scm.SCMRevisionState

getUrlName

public String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action
Overrides:
getUrlName in class hudson.scm.SCMRevisionState


Copyright © 2004-2011. All Rights Reserved.