Class HgScmTranslator
java.lang.Object
org.apache.maven.shared.release.scm.HgScmTranslator
- All Implemented Interfaces:
ScmTranslator
HgScmTranslator class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolveTag
(String tag) Determine what tag should be added to the POM given the original tag and the new one.toRelativePath
(String path) Translates an ScmFile path to a path relative to the working directory.translateBranchUrl
(String url, String branchName, String branchBase) Take an URL and find the correct replacement URL for a given branch.translateTagUrl
(String url, String tag, String tagBase) Take an URL and find the correct replacement URL for a given tag.
-
Constructor Details
-
HgScmTranslator
public HgScmTranslator()
-
-
Method Details
-
translateBranchUrl
Description copied from interface:ScmTranslator
Take an URL and find the correct replacement URL for a given branch.- Specified by:
translateBranchUrl
in interfaceScmTranslator
- Parameters:
url
- the source URLbranchName
- the branch namebranchBase
- the branch base for providers that support it- Returns:
- the replacement URL
-
translateTagUrl
Description copied from interface:ScmTranslator
Take an URL and find the correct replacement URL for a given tag.- Specified by:
translateTagUrl
in interfaceScmTranslator
- Parameters:
url
- the source URLtag
- the tagtagBase
- the tag base for providers that support it- Returns:
- the replacement URL
-
resolveTag
Description copied from interface:ScmTranslator
Determine what tag should be added to the POM given the original tag and the new one.- Specified by:
resolveTag
in interfaceScmTranslator
- Parameters:
tag
- the new tag- Returns:
- the tag to use, or
null
if the provider does not use tags
-
toRelativePath
Description copied from interface:ScmTranslator
Translates an ScmFile path to a path relative to the working directory.- Specified by:
toRelativePath
in interfaceScmTranslator
- Parameters:
path
- the ScmFile path- Returns:
- the relative path with OS specific File separator
-