Package hudson.plugins.mercurial
Class MercurialTagAction
java.lang.Object
hudson.scm.SCMRevisionState
hudson.plugins.mercurial.MercurialTagAction
- All Implemented Interfaces:
Action
,ModelObject
Action contributed to a build from Mercurial.
Currently it just remembers the revision ID, but we want to extend this to cover tagging.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
Branch name of current revision.final String
160-bit node name, e.g.final String
Integer revision number.final String
MatchesMercurialSCM.subdir
.Fields inherited from class hudson.scm.SCMRevisionState
NONE
-
Constructor Summary
ConstructorsConstructorDescriptionMercurialTagAction
(String id, String rev, String subdir) Deprecated.MercurialTagAction
(String id, String rev, String subdir, String branch) -
Method Summary
-
Field Details
-
id
160-bit node name, e.g.5703b34f17d5fec7bbff2f360c0b6c3d0b952f65
fromhg log -r . --template '{node}'
-
rev
Integer revision number. The repository-local changeset number. -
subdir
MatchesMercurialSCM.subdir
. -
branch
Branch name of current revision.
-
-
Constructor Details
-
MercurialTagAction
@Deprecated public MercurialTagAction(@NonNull String id, @NonNull String rev, @Nullable String subdir) Deprecated. -
MercurialTagAction
-
-
Method Details
-
getId
-
getRev
-
getSubdir
-
getBranch
-
getShortId
Mercurial often uses a short ID form that consists of 12 letters. -
toString
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
- Overrides:
getIconFileName
in classSCMRevisionState
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classSCMRevisionState
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
- Overrides:
getUrlName
in classSCMRevisionState
-