Package org.apache.maven.scm.provider.hg
Class HgScmProvider
- java.lang.Object
- 
- org.apache.maven.scm.provider.AbstractScmProvider
- 
- org.apache.maven.scm.provider.hg.HgScmProvider
 
 
- 
- All Implemented Interfaces:
- ScmProvider
 
 @Singleton @Named("hg") public class HgScmProvider extends AbstractScmProviderMercurial (HG) is a decentralized revision control system.- Author:
- thurner rupert
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.maven.scm.provider.AbstractScmProviderlogger
 
- 
 - 
Constructor SummaryConstructors Constructor Description HgScmProvider()
 - 
Method Summary- 
Methods inherited from class org.apache.maven.scm.provider.AbstractScmProvideradd, add, add, blame, blame, branch, branch, branch, changeLog, changeLog, changeLog, changeLog, changeLog, changeLog, changeLog, changeLog, changeLog, checkIn, checkIn, checkIn, checkIn, checkOut, checkOut, checkOut, checkOut, checkOut, checkOut, checkOut, diff, diff, edit, edit, export, export, export, export, export, export, list, list, login, mkdir, mkdir, remoteInfo, remove, requiresEditMode, sanitizeTagName, status, tag, tag, tag, unedit, unedit, untag, update, update, update, update, update, update, update, update, update, update, update, update, validateTagName
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.maven.scm.provider.ScmProvidersetInteractive
 
- 
 
- 
- 
- 
Constructor Detail- 
HgScmProviderpublic HgScmProvider() 
 
- 
 - 
Method Detail- 
getScmSpecificFilenamepublic String getScmSpecificFilename() Returns the scm reserved file name where the SCM stores information like '.git', '.svn'.- Specified by:
- getScmSpecificFilenamein interface- ScmProvider
- Overrides:
- getScmSpecificFilenamein class- AbstractScmProvider
- Returns:
- the scm reserved file name
 
 - 
makeProviderScmRepositorypublic ScmProviderRepository makeProviderScmRepository(String scmSpecificUrl, char delimiter) throws ScmRepositoryException - Throws:
- ScmRepositoryException
 
 - 
makeProviderScmRepositorypublic ScmProviderRepository makeProviderScmRepository(File path) throws ScmRepositoryException, UnknownRepositoryStructure Try to create aScmProviderRepositoryfor this provider from the given working directory (created through a previous checkout). This is only successful if the working directory is recognized by this SCM provider.- Specified by:
- makeProviderScmRepositoryin interface- ScmProvider
- Overrides:
- makeProviderScmRepositoryin class- AbstractScmProvider
- Parameters:
- path- the checkout(working) directory
- Returns:
- the repository bound to this provider
- Throws:
- ScmRepositoryException- in case the given directory does not contain a valid working directory recognized by this provider
- UnknownRepositoryStructure- in case the provider does not support this way of initializing an ScmProviderRepository
 
 - 
validateScmUrlpublic List<String> validateScmUrl(String scmSpecificUrl, char delimiter) Validate the scm url.- Specified by:
- validateScmUrlin interface- ScmProvider
- Overrides:
- validateScmUrlin class- AbstractScmProvider
- Parameters:
- scmSpecificUrl- the SCM url
- delimiter- the delimiter used in the SCM url
- Returns:
- returns a list of messages if the validation failed
 
 - 
getScmTypepublic String getScmType() 
 - 
addpublic AddScmResult add(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException TODO: why public? This should be protected, no?- Overrides:
- addin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
changelogpublic ChangeLogScmResult changelog(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- changelogin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
checkinpublic CheckInScmResult checkin(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- checkinin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
checkoutpublic CheckOutScmResult checkout(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- checkoutin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
tagpublic TagScmResult tag(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- tagin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
diffpublic DiffScmResult diff(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- diffin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
removepublic RemoveScmResult remove(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- removein class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
statuspublic StatusScmResult status(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- statusin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
updatepublic UpdateScmResult update(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- updatein class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
blameprotected BlameScmResult blame(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- blamein class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
branchpublic BranchScmResult branch(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Overrides:
- branchin class- AbstractScmProvider
- Throws:
- ScmException
 
 - 
listprotected ListScmResult list(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException Description copied from class:AbstractScmProviderList each element (files and directories) of fileSet as they exist in the repository.- Overrides:
- listin class- AbstractScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to list
- parameters- TODO
- Returns:
- the list of files in the repository
- Throws:
- NoSuchCommandScmException- unless overriden by subclass
- ScmException- if any
- Since:
- 1.5
 
 - 
infopublic InfoScmResult info(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException Returns result of hg id -i.- Specified by:
- infoin interface- ScmProvider
- Overrides:
- infoin class- AbstractScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- parameters- some parameters (not use currently but for future use)
- Returns:
- if the scm implementation doesn't support "info" result will null
- Throws:
- ScmException- if any
- Since:
- 1.5
- See Also:
- AbstractScmProvider.info(org.apache.maven.scm.provider.ScmProviderRepository, org.apache.maven.scm.ScmFileSet, org.apache.maven.scm.CommandParameters)
 
 
- 
 
-