Class AbstractScmProvider
- java.lang.Object
- 
- org.apache.maven.scm.provider.AbstractScmProvider
 
- 
- All Implemented Interfaces:
- ScmProvider
 - Direct Known Subclasses:
- AbstractGitScmProvider,- AbstractSvnScmProvider,- HgScmProvider,- LocalScmProvider
 
 public abstract class AbstractScmProvider extends Object implements ScmProvider - Author:
- Trygve Laugstøl, Emmanuel Venisse, Olivier Lamy
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected org.slf4j.Loggerlogger
 - 
Constructor SummaryConstructors Constructor Description AbstractScmProvider()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AddScmResultadd(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)TODO: why public? This should be protected, no?AddScmResultadd(ScmRepository repository, ScmFileSet fileSet)Adds the given files to the source control system.AddScmResultadd(ScmRepository repository, ScmFileSet fileSet, String message)Adds the given files to the source control system.AddScmResultadd(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters)Adds the given files to the source control system.BlameScmResultblame(BlameScmRequest blameScmRequest)protected BlameScmResultblame(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)BlameScmResultblame(ScmRepository repository, ScmFileSet fileSet, String filename)Returns the blame of specified file.protected BranchScmResultbranch(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)BranchScmResultbranch(ScmRepository repository, ScmFileSet fileSet, String branchName)Branch (or label in some systems) will create a branch of the source file with a certain branch name.BranchScmResultbranch(ScmRepository repository, ScmFileSet fileSet, String branchName, String message)Branch (or label in some systems) will create a branch of the source file with a certain branch name.BranchScmResultbranch(ScmRepository repository, ScmFileSet fileSet, String branchName, ScmBranchParameters scmBranchParameters)Branch (or label in some systems) will create a branch of the source file with a certain branch name.protected ChangeLogScmResultchangelog(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)ChangeLogScmResultchangeLog(ChangeLogScmRequest request)Returns the changes that have happened in the source control system in a certain period of time.ChangeLogScmResultchangeLog(ScmRepository repository, ScmFileSet fileSet, String startTag, String endTag)Deprecated.ChangeLogScmResultchangeLog(ScmRepository repository, ScmFileSet fileSet, String startTag, String endTag, String datePattern)Deprecated.ChangeLogScmResultchangeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, String branch)Deprecated.ChangeLogScmResultchangeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, String branch, String datePattern)Deprecated.ChangeLogScmResultchangeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch)Returns the changes that have happened in the source control system in a certain period of time.ChangeLogScmResultchangeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch, String datePattern)Returns the changes that have happened in the source control system in a certain period of time.ChangeLogScmResultchangeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion)Returns the changes that have happened in the source control system between two tags.ChangeLogScmResultchangeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion, String datePattern)Returns the changes that have happened in the source control system between two tags.protected CheckInScmResultcheckin(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)CheckInScmResultcheckIn(ScmRepository repository, ScmFileSet fileSet, String message)Save the changes you have done into the repository.CheckInScmResultcheckIn(ScmRepository repository, ScmFileSet fileSet, String tag, String message)Deprecated.CheckInScmResultcheckIn(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters)Save the changes you have done into the repository.CheckInScmResultcheckIn(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, String message)Save the changes you have done into the repository.protected CheckOutScmResultcheckout(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)CheckOutScmResultcheckOut(ScmRepository repository, ScmFileSet fileSet)Create a copy of the repository on your local machine.CheckOutScmResultcheckOut(ScmRepository repository, ScmFileSet fileSet, boolean recursive)Create a copy of the repository on your local machine.CheckOutScmResultcheckOut(ScmRepository repository, ScmFileSet fileSet, String tag)Deprecated.CheckOutScmResultcheckOut(ScmRepository repository, ScmFileSet fileSet, String tag, boolean recursive)Deprecated.CheckOutScmResultcheckOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion)Create a copy of the repository on your local machine.CheckOutScmResultcheckOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, boolean recursive)Create a copy of the repository on your local machine.CheckOutScmResultcheckOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, CommandParameters commandParameters)Create a copy of the repository on your local machine.protected DiffScmResultdiff(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)DiffScmResultdiff(ScmRepository repository, ScmFileSet fileSet, String startRevision, String endRevision)Deprecated.DiffScmResultdiff(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion)Create a diff between two branch/tag/revision.protected EditScmResultedit(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)EditScmResultedit(ScmRepository repository, ScmFileSet fileSet)Make a file editable.protected ExportScmResultexport(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)ExportScmResultexport(ScmRepository repository, ScmFileSet fileSet)Create an exported copy of the repository on your local machine.ExportScmResultexport(ScmRepository repository, ScmFileSet fileSet, String tag)Deprecated.ExportScmResultexport(ScmRepository repository, ScmFileSet fileSet, String tag, String outputDirectory)Deprecated.ExportScmResultexport(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion)Create an exported copy of the repository on your local machine.ExportScmResultexport(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, String outputDirectory)Create an exported copy of the repository on your local machine.StringgetScmSpecificFilename()Returns the scm reserved file name where the SCM stores information like '.git', '.svn'.InfoScmResultinfo(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)protected ListScmResultlist(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)List each element (files and directories) of fileSet as they exist in the repository.ListScmResultlist(ScmRepository repository, ScmFileSet fileSet, boolean recursive, String tag)List each element (files and directories) of fileSet as they exist in the repository.ListScmResultlist(ScmRepository repository, ScmFileSet fileSet, boolean recursive, ScmVersion scmVersion)List each element (files and directories) of fileSet as they exist in the repository.protected LoginScmResultlogin(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)ScmProviderRepositorymakeProviderScmRepository(File path)Try to create aScmProviderRepositoryfor this provider from the given working directory (created through a previous checkout).protected MkdirScmResultmkdir(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)Create directory/directories in the repository.MkdirScmResultmkdir(ScmRepository repository, ScmFileSet fileSet, String message, boolean createInLocal)Create directory/directories in the repository.RemoteInfoScmResultremoteInfo(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)protected RemoveScmResultremove(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)RemoveScmResultremove(ScmRepository repository, ScmFileSet fileSet, String message)Removes the given files from the source control system.booleanrequiresEditMode()StringsanitizeTagName(String tag)Given a tag name, make it suitable for this SCM provider.protected StatusScmResultstatus(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)StatusScmResultstatus(ScmRepository repository, ScmFileSet fileSet)Returns the status of the files in the source control system.protected TagScmResulttag(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)TagScmResulttag(ScmRepository repository, ScmFileSet fileSet, String tagName)Tag (or label in some systems) will tag the source file with a certain tag.TagScmResulttag(ScmRepository repository, ScmFileSet fileSet, String tagName, String message)Tag (or label in some systems) will tag the source file with a certain tag.TagScmResulttag(ScmRepository repository, ScmFileSet fileSet, String tagName, ScmTagParameters scmTagParameters)Tag (or label in some systems) will tag the source file with a certain tag.protected UnEditScmResultunedit(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)UnEditScmResultunedit(ScmRepository repository, ScmFileSet fileSet)Make a file no longer editable.UntagScmResultuntag(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters)Deletes a tag.protected UpdateScmResultupdate(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters)UpdateScmResultupdate(ScmRepository repository, ScmFileSet fileSet)Updates the copy on the local machine with the changes in the repository.UpdateScmResultupdate(ScmRepository repository, ScmFileSet fileSet, boolean runChangelog)Updates the copy on the local machine with the changes in the repository.UpdateScmResultupdate(ScmRepository repository, ScmFileSet fileSet, String tag)Deprecated.UpdateScmResultupdate(ScmRepository repository, ScmFileSet fileSet, String tag, boolean runChangelog)Deprecated.UpdateScmResultupdate(ScmRepository repository, ScmFileSet fileSet, String tag, String datePattern)Deprecated.UpdateScmResultupdate(ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate)Deprecated.UpdateScmResultupdate(ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate, String datePattern)Deprecated.UpdateScmResultupdate(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion)Updates the copy on the local machine with the changes in the repository.UpdateScmResultupdate(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, boolean runChangelog)Updates the copy on the local machine with the changes in the repository.UpdateScmResultupdate(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, String datePattern)Updates the copy on the local machine with the changes in the repository.UpdateScmResultupdate(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, Date lastUpdate)Updates the copy on the local machine with the changes in the repository.UpdateScmResultupdate(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, Date lastUpdate, String datePattern)Updates the copy on the local machine with the changes in the repository.List<String>validateScmUrl(String scmSpecificUrl, char delimiter)Validate the scm url.booleanvalidateTagName(String tag)Check if this tag is valid for this SCM provider.- 
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.ScmProvidergetScmType, makeProviderScmRepository, setInteractive
 
- 
 
- 
- 
- 
Field Detail- 
loggerprotected final org.slf4j.Logger logger 
 
- 
 - 
Constructor Detail- 
AbstractScmProviderpublic AbstractScmProvider() 
 
- 
 - 
Method Detail- 
getScmSpecificFilenamepublic String getScmSpecificFilename() Returns the scm reserved file name where the SCM stores information like '.git', '.svn'.- Specified by:
- getScmSpecificFilenamein interface- ScmProvider
- Returns:
- the scm reserved file name
 
 - 
sanitizeTagNamepublic String sanitizeTagName(String tag) Given a tag name, make it suitable for this SCM provider.- Specified by:
- sanitizeTagNamein interface- ScmProvider
- Parameters:
- tag- input tag name
- Returns:
- sanitized tag name
 
 - 
validateTagNamepublic boolean validateTagName(String tag) Check if this tag is valid for this SCM provider.- Specified by:
- validateTagNamein interface- ScmProvider
- Parameters:
- tag- tag name to check
- Returns:
- true if tag is valid
 
 - 
validateScmUrlpublic List<String> validateScmUrl(String scmSpecificUrl, char delimiter) Validate the scm url.- Specified by:
- validateScmUrlin interface- ScmProvider
- Parameters:
- scmSpecificUrl- the SCM url
- delimiter- the delimiter used in the SCM url
- Returns:
- returns a list of messages if the validation failed
 
 - 
requiresEditModepublic boolean requiresEditMode() - Specified by:
- requiresEditModein interface- ScmProvider
 
 - 
addpublic AddScmResult add(ScmRepository repository, ScmFileSet fileSet) throws ScmException Adds the given files to the source control system.- Specified by:
- addin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to be added
- Returns:
- an AddScmResultthat contains the files that have been added
- Throws:
- ScmException- if any
 
 - 
addpublic AddScmResult add(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException Adds the given files to the source control system.- Specified by:
- addin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to be added
- message- a string that is a comment on the new added file
- Returns:
- an AddScmResultthat contains the files that have been added
- Throws:
- ScmException- if any
 
 - 
addpublic AddScmResult add(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException Description copied from interface:ScmProviderAdds the given files to the source control system.- Specified by:
- addin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to be added
- parameters-- CommandParameters
- Returns:
- an AddScmResultthat contains the files that have been added
- Throws:
- ScmException- if any
 
 - 
addpublic AddScmResult add(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException TODO: why public? This should be protected, no?- Throws:
- ScmException
 
 - 
branchpublic BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName) throws ScmException Branch (or label in some systems) will create a branch of the source file with a certain branch name.- Specified by:
- branchin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to branch. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- branchName- the branch name to apply to the files
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
branchpublic BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName, String message) throws ScmException Branch (or label in some systems) will create a branch of the source file with a certain branch name.- Specified by:
- branchin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to branch. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- branchName- the branch name to apply to the files
- message- the commit message used for the tag creation
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
branchpublic BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName, ScmBranchParameters scmBranchParameters) throws ScmException Description copied from interface:ScmProviderBranch (or label in some systems) will create a branch of the source file with a certain branch name.- Specified by:
- branchin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to branch. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- branchName- the branch name to apply to the files
- scmBranchParameters- TODO
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
branchprotected BranchScmResult branch(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
changeLog@Deprecated public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, String branch) throws ScmException Deprecated.Returns the changes that have happened in the source control system in a certain period of time. This can be adding, removing, updating, ... of files.- Specified by:
- changeLogin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to know the changes about. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- startDate- the start date of the period
- endDate- the end date of the period
- numDays- the number days before the current time if startdate and enddate are null
- branch- the branch/tag name
- Returns:
- the SCM result of the changelog command
- Throws:
- ScmException- if any
 
 - 
changeLog@Deprecated public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, String branch, String datePattern) throws ScmException Deprecated.Returns the changes that have happened in the source control system in a certain period of time. This can be adding, removing, updating, ... of files.- Specified by:
- changeLogin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to know the changes about. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- startDate- the start date of the period
- endDate- the end date of the period
- numDays- the number days before the current time if startdate and enddate are null
- branch- the branch/tag name
- datePattern- the date pattern use in changelog output returned by scm tool
- Returns:
- the SCM result of the changelog command
- Throws:
- ScmException- if any
 
 - 
changeLogpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch) throws ScmException Returns the changes that have happened in the source control system in a certain period of time. This can be adding, removing, updating, ... of files.- Specified by:
- changeLogin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to know the changes about. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- startDate- the start date of the period
- endDate- the end date of the period
- numDays- the number days before the current time if startdate and enddate are null
- branch- the branch/tag
- Returns:
- the SCM result of the changelog command
- Throws:
- ScmException- if any
 
 - 
changeLogpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch, String datePattern) throws ScmException Returns the changes that have happened in the source control system in a certain period of time. This can be adding, removing, updating, ... of files.- Specified by:
- changeLogin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to know the changes about. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- startDate- the start date of the period
- endDate- the end date of the period
- numDays- the number days before the current time if startDate and endDate are null
- branch- the branch/tag
- datePattern- the date pattern use in changelog output returned by scm tool
- Returns:
- the SCM result of the changelog command
- Throws:
- ScmException- if any
 
 - 
changeLogpublic ChangeLogScmResult changeLog(ChangeLogScmRequest request) throws ScmException Returns the changes that have happened in the source control system in a certain period of time. This can be adding, removing, updating, ... of files.- Specified by:
- changeLogin interface- ScmProvider
- Parameters:
- request- request wrapping detailed parameters for the changelog command
- Returns:
- the SCM result of the changelog command
- Throws:
- ScmException- if any
 
 - 
changeLog@Deprecated public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, String startTag, String endTag) throws ScmException Deprecated.Returns the changes that have happened in the source control system between two tags. This can be adding, removing, updating, ... of files.- Specified by:
- changeLogin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to know the changes about. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- startTag- the start tag
- endTag- the end tag
- Returns:
- the SCM result of the changelog command
- Throws:
- ScmException- if any
 
 - 
changeLog@Deprecated public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, String startTag, String endTag, String datePattern) throws ScmException Deprecated.Returns the changes that have happened in the source control system between two tags. This can be adding, removing, updating, ... of files.- Specified by:
- changeLogin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to know the changes about. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- startTag- the start tag
- endTag- the end tag
- datePattern- the date pattern use in changelog output returned by scm tool
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
changeLogpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException Returns the changes that have happened in the source control system between two tags. This can be adding, removing, updating, ... of files.- Specified by:
- changeLogin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to know the changes about. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- startVersion- the start branch/tag/revision
- endVersion- the end branch/tag/revision
- Returns:
- the SCM result of the changelog command
- Throws:
- ScmException- if any
 
 - 
changeLogpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion, String datePattern) throws ScmException Returns the changes that have happened in the source control system between two tags. This can be adding, removing, updating, ... of files.- Specified by:
- changeLogin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to know the changes about. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- startVersion- the start revision
- endVersion- the end revision
- datePattern- the date pattern use in changelog output returned by scm tool
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
changelogprotected ChangeLogScmResult changelog(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
checkIn@Deprecated public CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, String tag, String message) throws ScmException Deprecated.Save the changes you have done into the repository. This will create a new version of the file or directory in the repository.When the fileSet has no entries, the fileSet.getBaseDir() is recursively committed. When the fileSet has entries, the commit is non-recursive and only the elements in the fileSet are committed. - Specified by:
- checkInin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to check in (sometimes called commit)
- tag- tag or revision
- message- a string that is a comment on the changes that where done
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
checkInpublic CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException Save the changes you have done into the repository. This will create a new version of the file or directory in the repository.When the fileSet has no entries, the fileSet.getBaseDir() is recursively committed. When the fileSet has entries, the commit is non-recursive and only the elements in the fileSet are committed. - Specified by:
- checkInin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to check in (sometimes called commit)
- message- a string that is a comment on the changes that where done
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
checkInpublic CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, String message) throws ScmException Save the changes you have done into the repository. This will create a new version of the file or directory in the repository.When the fileSet has no entries, the fileSet.getBaseDir() is recursively committed. When the fileSet has entries, the commit is non-recursive and only the elements in the fileSet are committed. - Specified by:
- checkInin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to check in (sometimes called commit)
- scmVersion- branch/tag/revision
- message- a string that is a comment on the changes that where done
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
checkInpublic CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException Description copied from interface:ScmProviderSave the changes you have done into the repository. This will create a new version of the file or directory in the repository.When the fileSet has no entries, the fileSet.getBaseDir() is recursively committed. When the fileSet has entries, the commit is non-recursive and only the elements in the fileSet are committed. - Specified by:
- checkInin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to check in (sometimes called commit)
- parameters-- CommandParameters
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
checkinprotected CheckInScmResult checkin(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
checkOut@Deprecated public CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, String tag) throws ScmException Deprecated.Create a copy of the repository on your local machine.- Specified by:
- checkOutin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files are copied to the- ScmFileSet.getBasedir()location
- tag- get the version defined by the tag
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
checkOut@Deprecated public CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, String tag, boolean recursive) throws ScmException Deprecated.Create a copy of the repository on your local machine.- Specified by:
- checkOutin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files are copied to the- ScmFileSet.getBasedir()location
- tag- tag or revision
- recursive- whether to check out recursively
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
checkOutpublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet) throws ScmException Create a copy of the repository on your local machine.- Specified by:
- checkOutin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files are copied to the- ScmFileSet.getBasedir()location
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
checkOutpublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion) throws ScmException Create a copy of the repository on your local machine.- Specified by:
- checkOutin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files are copied to the- ScmFileSet.getBasedir()location
- scmVersion- get the version defined by the revision, branch or tag
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
checkOutpublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, boolean recursive) throws ScmException Create a copy of the repository on your local machine.- Specified by:
- checkOutin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files are copied to the- ScmFileSet.getBasedir()location
- recursive- whether to check out recursively
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
checkOutpublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, boolean recursive) throws ScmException Create a copy of the repository on your local machine.- Specified by:
- checkOutin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files are copied to the- ScmFileSet.getBasedir()location
- scmVersion- get the version defined by the revision, branch or tag
- recursive- whether to check out recursively
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
checkOutpublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, CommandParameters commandParameters) throws ScmException Description copied from interface:ScmProviderCreate a copy of the repository on your local machine.- Specified by:
- checkOutin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files are copied to the- ScmFileSet.getBasedir()location
- scmVersion- get the version defined by the revision, branch or tag
- commandParameters- parameters
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
checkoutprotected CheckOutScmResult checkout(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
diff@Deprecated public DiffScmResult diff(ScmRepository repository, ScmFileSet fileSet, String startRevision, String endRevision) throws ScmException Deprecated.Create a diff between two branch/tag/revision.- Specified by:
- diffin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files are copied to the- ScmFileSet.getBasedir()location
- startRevision- the start revision
- endRevision- the end revision
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
diffpublic DiffScmResult diff(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException Create a diff between two branch/tag/revision.- Specified by:
- diffin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files are copied to the- ScmFileSet.getBasedir()location
- startVersion- the start branch/tag/revision
- endVersion- the end branch/tag/revision
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
diffprotected DiffScmResult diff(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
editpublic EditScmResult edit(ScmRepository repository, ScmFileSet fileSet) throws ScmException Make a file editable. This is used in source control systems where you look at read-only files, and you need to make them writable before you can edit them. This can also mean that no other user in the system can make the file writable.- Specified by:
- editin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to make editable
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
editprotected EditScmResult edit(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
export@Deprecated public ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, String tag) throws ScmException Deprecated.Create an exported copy of the repository on your local machine.- Specified by:
- exportin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files are copied to the- ScmFileSet.getBasedir()location
- tag- get the version defined by the tag
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
export@Deprecated public ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, String tag, String outputDirectory) throws ScmException Deprecated.Create an exported copy of the repository on your local machine.- Specified by:
- exportin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files are copied to the- ScmFileSet.getBasedir()location
- tag- get the version defined by the tag
- outputDirectory- the directory where the export will be stored
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
exportpublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet) throws ScmException Create an exported copy of the repository on your local machine.- Specified by:
- exportin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files are copied to the- ScmFileSet.getBasedir()location
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
exportpublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion) throws ScmException Create an exported copy of the repository on your local machine.- Specified by:
- exportin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files are copied to the- ScmFileSet.getBasedir()location
- scmVersion- get the version defined by the branch/tag/revision
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
exportpublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, String outputDirectory) throws ScmException Create an exported copy of the repository on your local machine.- Specified by:
- exportin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files are copied to the- ScmFileSet.getBasedir()location
- scmVersion- get the version defined by the branch/tag/revision
- outputDirectory- the directory where the export will be stored
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
exportprotected ExportScmResult export(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
listpublic ListScmResult list(ScmRepository repository, ScmFileSet fileSet, boolean recursive, String tag) throws ScmException List each element (files and directories) of fileSet as they exist in the repository.- Specified by:
- listin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to list
- recursive- descend recursively
- tag- use the version defined by the tag
- Returns:
- the list of files in the repository
- Throws:
- ScmException- if any
 
 - 
listpublic ListScmResult list(ScmRepository repository, ScmFileSet fileSet, boolean recursive, ScmVersion scmVersion) throws ScmException List each element (files and directories) of fileSet as they exist in the repository.- Specified by:
- listin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to list
- recursive- descend recursively
- scmVersion- use the version defined by the branch/tag/revision
- Returns:
- the list of files in the repository
- Throws:
- ScmException- if any
 
 - 
listprotected ListScmResult list(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException List each element (files and directories) of fileSet as they exist in the repository.- 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
 
 - 
mkdirpublic MkdirScmResult mkdir(ScmRepository repository, ScmFileSet fileSet, String message, boolean createInLocal) throws ScmException Create directory/directories in the repository.- Specified by:
- mkdirin interface- ScmProvider
- Parameters:
- repository- TODO
- fileSet- TODO
- message- TODO
- createInLocal- TODO
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
mkdirprotected MkdirScmResult mkdir(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException Create directory/directories in the repository.- Parameters:
- repository- TODO
- fileSet- TODO
- parameters- TODO
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
loginprotected LoginScmResult login(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
removepublic RemoveScmResult remove(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException Removes the given files from the source control system.- Specified by:
- removein interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to be removed
- message- TODO
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
removeprotected RemoveScmResult remove(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
statuspublic StatusScmResult status(ScmRepository repository, ScmFileSet fileSet) throws ScmException Returns the status of the files in the source control system. The state of each file can be one of theScmFileStatusflags.- Specified by:
- statusin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to know the status about. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
statusprotected StatusScmResult status(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
tagpublic TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tagName) throws ScmException Tag (or label in some systems) will tag the source file with a certain tag.- Specified by:
- tagin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to tag. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- tagName- the tag name to apply to the files
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
tagpublic TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tagName, String message) throws ScmException Tag (or label in some systems) will tag the source file with a certain tag.- Specified by:
- tagin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to tag. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- tagName- the tag name to apply to the files
- message- the commit message used for the tag creation
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
tagpublic TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tagName, ScmTagParameters scmTagParameters) throws ScmException Tag (or label in some systems) will tag the source file with a certain tag.- Specified by:
- tagin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to tag. Implementations can also give the changes from the- ScmFileSet.getBasedir()downwards.
- tagName- the tag name to apply to the files
- scmTagParameters- bean to pass some paramters for tagging- ScmTagParameters
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
tagprotected TagScmResult tag(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
uneditpublic UnEditScmResult unedit(ScmRepository repository, ScmFileSet fileSet) throws ScmException Make a file no longer editable. This is the conterpart ofScmProvider.edit( org.apache.maven.scm.repository.ScmRepository, org.apache.maven.scm.ScmFileSet). It makes the file read-only again.- Specified by:
- uneditin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- the files to make uneditable
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
uneditprotected UnEditScmResult unedit(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
untagpublic UntagScmResult untag(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException Deletes a tag.- Specified by:
- untagin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- a fileset with the relevant working directory as basedir
- parameters- TODO
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
update@Deprecated public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag) throws ScmException Deprecated.Updates the copy on the local machine with the changes in the repository.- Specified by:
- updatein interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- tag- use the version defined by the tag
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
update@Deprecated public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, boolean runChangelog) throws ScmException Deprecated.Updates the copy on the local machine with the changes in the repository.- Specified by:
- updatein interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- tag- use the version defined by the tag
- runChangelog- run the changelog command after the update
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet) throws ScmException Updates the copy on the local machine with the changes in the repository.- Specified by:
- updatein interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion) throws ScmException Updates the copy on the local machine with the changes in the repository.- Specified by:
- updatein interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- scmVersion- use the version defined by the branch/tag/revision
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, boolean runChangelog) throws ScmException Updates the copy on the local machine with the changes in the repository.- Specified by:
- updatein interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- runChangelog- run the changelog command after the update
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, boolean runChangelog) throws ScmException Updates the copy on the local machine with the changes in the repository.- Specified by:
- updatein interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- scmVersion- use the version defined by the branch/tag/revision
- runChangelog- run the changelog command after the update
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, String datePattern) throws ScmException Deprecated.Updates the copy on the local machine with the changes in the repository.- Specified by:
- updatein interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- tag- use the version defined by the tag
- datePattern- the date pattern use in changelog output returned by scm tool
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, String datePattern) throws ScmException Updates the copy on the local machine with the changes in the repository.- Specified by:
- updatein interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- scmVersion- use the version defined by the branch/tag/revision
- datePattern- the date pattern use in changelog output returned by scm tool
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
update@Deprecated public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate) throws ScmException Deprecated.Updates the copy on the local machine with the changes in the repository.- Specified by:
- updatein interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- tag- use the version defined by the tag
- lastUpdate- TODO
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, Date lastUpdate) throws ScmException Updates the copy on the local machine with the changes in the repository.- Specified by:
- updatein interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- scmVersion- use the version defined by the branch/tag/revision
- lastUpdate- TODO
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
update@Deprecated public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate, String datePattern) throws ScmException Deprecated.Updates the copy on the local machine with the changes in the repository.- Specified by:
- updatein interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- tag- use the version defined by the tag
- lastUpdate- date of last update
- datePattern- the date pattern use in changelog output returned by scm tool
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
updatepublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion scmVersion, Date lastUpdate, String datePattern) throws ScmException Updates the copy on the local machine with the changes in the repository.- Specified by:
- updatein interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- scmVersion- use the version defined by the branch/tag/revision
- lastUpdate- date of last update
- datePattern- the date pattern use in changelog output returned by scm tool
- Returns:
- TODO
- Throws:
- ScmException- if any
 
 - 
updateprotected UpdateScmResult update(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
blamepublic BlameScmResult blame(ScmRepository repository, ScmFileSet fileSet, String filename) throws ScmException Returns the blame of specified file.- Specified by:
- blamein interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- location of your local copy
- filename- file
- Returns:
- blame for specified file
- Throws:
- ScmException- if any
 
 - 
blameprotected BlameScmResult blame(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Throws:
- ScmException
 
 - 
blamepublic BlameScmResult blame(BlameScmRequest blameScmRequest) throws ScmException - Specified by:
- blamein interface- ScmProvider
- Parameters:
- blameScmRequest- TODO
- Returns:
- blame for the file specified in the request
- Throws:
- ScmException- if any
 
 - 
infopublic InfoScmResult info(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Specified by:
- infoin interface- ScmProvider
- 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
 
 - 
remoteInfopublic RemoteInfoScmResult remoteInfo(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException - Specified by:
- remoteInfoin interface- ScmProvider
- Parameters:
- repository- the source control system
- fileSet- not use currently but for future use
- 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
 
 - 
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
- 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
 
 
- 
 
-