public class ScmProviderStub extends Object implements ScmProvider
Constructor and Description |
---|
ScmProviderStub()
Create a new ScmProviderStub with bogus (not null) attributes
|
Modifier and Type | Method and Description |
---|---|
AddScmResult |
add(ScmRepository repository,
ScmFileSet fileSet)
Adds the given files to the source control system
|
AddScmResult |
add(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters commandParameters)
Adds the given files to the source control system
|
AddScmResult |
add(ScmRepository repository,
ScmFileSet fileSet,
String message)
Adds the given files to the source control system
|
BlameScmResult |
blame(BlameScmRequest blameScmRequest) |
BlameScmResult |
blame(ScmRepository repository,
ScmFileSet fileSet,
String filename)
Returns the blame of specified file
|
BranchScmResult |
branch(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
|
BranchScmResult |
branch(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
|
BranchScmResult |
branch(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
|
ChangeLogScmResult |
changeLog(ChangeLogScmRequest scmRequest)
Returns the changes that have happened in the source control system in a certain period of time.
|
ChangeLogScmResult |
changeLog(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.
|
ChangeLogScmResult |
changeLog(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.
|
ChangeLogScmResult |
changeLog(ScmRepository repository,
ScmFileSet fileSet,
Date startDate,
Date endDate,
int numDays,
String branch)
Returns the changes that have happened in the source control system in a certain period of time.
|
ChangeLogScmResult |
changeLog(ScmRepository repository,
ScmFileSet fileSet,
Date startDate,
Date endDate,
int numDays,
String branch,
String datePattern)
Returns the changes that have happened in the source control system in a certain period of time.
|
ChangeLogScmResult |
changeLog(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion startVersion,
ScmVersion endVersion)
Returns the changes that have happened in the source control system between two tags.
|
ChangeLogScmResult |
changeLog(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion startRevision,
ScmVersion endRevision,
String datePattern)
Returns the changes that have happened in the source control system between two tags.
|
ChangeLogScmResult |
changeLog(ScmRepository repository,
ScmFileSet fileSet,
String startTag,
String endTag)
Returns the changes that have happened in the source control system between two tags.
|
ChangeLogScmResult |
changeLog(ScmRepository repository,
ScmFileSet fileSet,
String startTag,
String endTag,
String datePattern)
Returns the changes that have happened in the source control system between two tags.
|
CheckInScmResult |
checkIn(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion revision,
String message)
Save the changes you have done into the repository.
|
CheckInScmResult |
checkIn(ScmRepository repository,
ScmFileSet fileSet,
String message)
Save the changes you have done into the repository.
|
CheckInScmResult |
checkIn(ScmRepository repository,
ScmFileSet fileSet,
String tag,
String message)
Save the changes you have done into the repository.
|
CheckOutScmResult |
checkOut(ScmRepository repository,
ScmFileSet fileSet)
Create a copy of the repository on your local machine
|
CheckOutScmResult |
checkOut(ScmRepository scmRepository,
ScmFileSet scmFileSet,
boolean recursive)
Create a copy of the repository on your local machine.
|
CheckOutScmResult |
checkOut(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version)
Create a copy of the repository on your local machine
|
CheckOutScmResult |
checkOut(ScmRepository scmRepository,
ScmFileSet scmFileSet,
ScmVersion version,
boolean recursive)
Create a copy of the repository on your local machine.
|
CheckOutScmResult |
checkOut(ScmRepository scmRepository,
ScmFileSet scmFileSet,
ScmVersion version,
CommandParameters commandParameters)
Create a copy of the repository on your local machine.
|
CheckOutScmResult |
checkOut(ScmRepository repository,
ScmFileSet fileSet,
String tag)
Create a copy of the repository on your local machine
|
CheckOutScmResult |
checkOut(ScmRepository scmRepository,
ScmFileSet scmFileSet,
String tag,
boolean recursive)
Create a copy of the repository on your local machine.
|
DiffScmResult |
diff(ScmRepository scmRepository,
ScmFileSet scmFileSet,
ScmVersion startVersion,
ScmVersion endVersion)
Create a diff between two branch/tag/revision.
|
DiffScmResult |
diff(ScmRepository repository,
ScmFileSet fileSet,
String startRevision,
String endRevision)
Create a diff between two branch/tag/revision.
|
EditScmResult |
edit(ScmRepository repository,
ScmFileSet fileSet)
Make a file editable.
|
ExportScmResult |
export(ScmRepository repository,
ScmFileSet fileSet)
Create an exported copy of the repository on your local machine
|
ExportScmResult |
export(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version)
Create an exported copy of the repository on your local machine
|
ExportScmResult |
export(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
String outputDirectory)
Create an exported copy of the repository on your local machine
|
ExportScmResult |
export(ScmRepository repository,
ScmFileSet fileSet,
String tag)
Create an exported copy of the repository on your local machine
|
ExportScmResult |
export(ScmRepository repository,
ScmFileSet fileSet,
String tag,
String outputDirectory)
Create an exported copy of the repository on your local machine
|
AddScmResult |
getAddScmResult() |
BlameScmResult |
getBlameScmResult() |
BranchScmResult |
getBranchScmResult() |
ChangeLogScmResult |
getChangeLogScmResult() |
CheckInScmResult |
getCheckInScmResult() |
CheckOutScmResult |
getCheckOutScmResult() |
DiffScmResult |
getDiffScmResult() |
EditScmResult |
getEditScmResult() |
ExportScmResult |
getExportScmResult() |
ListScmResult |
getListScmResult() |
MkdirScmResult |
getMkdirScmResult() |
RemoveScmResult |
getRemoveScmResult() |
String |
getScmSpecificFilename()
Returns the scm reserved file name where the SCM stores information like '.git', '.svn'.
|
String |
getScmType() |
StatusScmResult |
getStatusScmResult() |
TagScmResult |
getTagScmResult() |
UnEditScmResult |
getUnEditScmResult() |
UntagScmResult |
getUntagScmResult() |
UpdateScmResult |
getUpdateScmResult() |
InfoScmResult |
info(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters) |
ListScmResult |
list(ScmRepository repository,
ScmFileSet fileSet,
boolean recursive,
ScmVersion version)
List each element (files and directories) of fileSet as they exist in the repository.
|
ListScmResult |
list(ScmRepository repository,
ScmFileSet fileSet,
boolean recursive,
String tag)
List each element (files and directories) of fileSet as they exist in the repository.
|
ScmProviderRepository |
makeProviderScmRepository(File path) |
ScmProviderRepository |
makeProviderScmRepository(String scmSpecificUrl,
char delimiter) |
MkdirScmResult |
mkdir(ScmRepository repository,
ScmFileSet fileSet,
String message,
boolean createInLocal)
Create directory/directories in the repository.
|
RemoteInfoScmResult |
remoteInfo(ScmProviderRepository repository,
ScmFileSet fileSet,
CommandParameters parameters) |
RemoveScmResult |
remove(ScmRepository repository,
ScmFileSet fileSet,
String message)
Removes the given files from the source control system
|
boolean |
requiresEditMode() |
String |
sanitizeTagName(String tag)
Given a tag name, make it suitable for this SCM provider.
|
void |
setAddScmResult(AddScmResult addScmResult) |
void |
setBlameScmResult(BlameScmResult blameScmResult) |
void |
setBranchScmResult(BranchScmResult branchScmResult) |
void |
setChangeLogScmResult(ChangeLogScmResult changeLogScmResult) |
void |
setCheckInScmResult(CheckInScmResult checkInScmResult) |
void |
setCheckOutScmResult(CheckOutScmResult checkOutScmResult) |
void |
setDiffScmResult(DiffScmResult diffScmResult) |
void |
setEditScmResult(EditScmResult editScmResult) |
void |
setExportScmResult(ExportScmResult exportScmResult) |
void |
setListScmResult(ListScmResult listScmResult) |
void |
setMkdirScmResult(MkdirScmResult mkdirScmResult) |
void |
setRemoveScmResult(RemoveScmResult removeScmResult) |
void |
setScmSpecificFilename(String scmSpecificFilename) |
void |
setStatusScmResult(StatusScmResult statusScmResult) |
void |
setTagScmResult(TagScmResult tagScmResult) |
void |
setUnEditScmResult(UnEditScmResult unEditScmResult) |
void |
setUntagScmResult(UntagScmResult untagScmResult) |
void |
setUpdateScmResult(UpdateScmResult updateScmResult) |
StatusScmResult |
status(ScmRepository repository,
ScmFileSet fileSet)
Returns the status of the files in the source control system.
|
TagScmResult |
tag(ScmRepository repository,
ScmFileSet fileSet,
String tag)
Tag (or label in some systems) will tag the source file with a certain tag
|
TagScmResult |
tag(ScmRepository repository,
ScmFileSet fileSet,
String tagName,
ScmTagParameters scmTagParameters)
Tag (or label in some systems) will tag the source file with a certain tag
|
TagScmResult |
tag(ScmRepository repository,
ScmFileSet fileSet,
String tag,
String message)
Tag (or label in some systems) will tag the source file with a certain tag
|
UnEditScmResult |
unedit(ScmRepository repository,
ScmFileSet fileSet)
Make a file no longer editable.
|
UntagScmResult |
untag(ScmRepository repository,
ScmFileSet fileSet,
CommandParameters parameters)
Deletes a tag.
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet)
Updates the copy on the local machine with the changes in the repository
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
boolean runChangelog)
Updates the copy on the local machine with the changes in the repository
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version)
Updates the copy on the local machine with the changes in the repository
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
boolean runChangelog)
Updates the copy on the local machine with the changes in the repository
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
Date lastUpdate)
Updates the copy on the local machine with the changes in the repository
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
Date lastUpdate,
String datePattern)
Updates the copy on the local machine with the changes in the repository
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
ScmVersion version,
String datePattern)
Updates the copy on the local machine with the changes in the repository
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
String tag)
Updates the copy on the local machine with the changes in the repository
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
String tag,
boolean runChangelog)
Updates the copy on the local machine with the changes in the repository
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
String tag,
Date lastUpdate)
Updates the copy on the local machine with the changes in the repository
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
String tag,
Date lastUpdate,
String datePattern)
Updates the copy on the local machine with the changes in the repository
|
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
String tag,
Date lastUpdate,
String datePattern,
boolean runChangelog) |
UpdateScmResult |
update(ScmRepository repository,
ScmFileSet fileSet,
String tag,
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.
|
boolean |
validateTagName(String tag)
Check if this tag is valid for this SCM provider.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setInteractive
public ScmProviderStub()
public String sanitizeTagName(String tag)
sanitizeTagName
in interface ScmProvider
tag
- input tag namepublic boolean validateTagName(String tag)
validateTagName
in interface ScmProvider
tag
- tag name to checkpublic String getScmType()
getScmType
in interface ScmProvider
public void setScmSpecificFilename(String scmSpecificFilename)
public boolean requiresEditMode()
requiresEditMode
in interface ScmProvider
public void setAddScmResult(AddScmResult addScmResult)
public AddScmResult getAddScmResult()
public void setBranchScmResult(BranchScmResult branchScmResult)
public BranchScmResult getBranchScmResult()
public void setCheckInScmResult(CheckInScmResult checkInScmResult)
public CheckInScmResult getCheckInScmResult()
public void setCheckOutScmResult(CheckOutScmResult checkOutScmResult)
public CheckOutScmResult getCheckOutScmResult()
public void setChangeLogScmResult(ChangeLogScmResult changeLogScmResult)
public ChangeLogScmResult getChangeLogScmResult()
public void setDiffScmResult(DiffScmResult diffScmResult)
public DiffScmResult getDiffScmResult()
public ExportScmResult getExportScmResult()
public void setExportScmResult(ExportScmResult exportScmResult)
public void setTagScmResult(TagScmResult tagScmResult)
public TagScmResult getTagScmResult()
public void setUntagScmResult(UntagScmResult untagScmResult)
public UntagScmResult getUntagScmResult()
public void setRemoveScmResult(RemoveScmResult removeScmResult)
public RemoveScmResult getRemoveScmResult()
public void setStatusScmResult(StatusScmResult statusScmResult)
public StatusScmResult getStatusScmResult()
public void setUpdateScmResult(UpdateScmResult updateScmResult)
public UpdateScmResult getUpdateScmResult()
public void setEditScmResult(EditScmResult editScmResult)
public EditScmResult getEditScmResult()
public void setUnEditScmResult(UnEditScmResult unEditScmResult)
public UnEditScmResult getUnEditScmResult()
public void setListScmResult(ListScmResult listScmResult)
public ListScmResult getListScmResult()
public void setBlameScmResult(BlameScmResult blameScmResult)
public BlameScmResult getBlameScmResult()
public MkdirScmResult getMkdirScmResult()
public void setMkdirScmResult(MkdirScmResult mkdirScmResult)
public ScmProviderRepository makeProviderScmRepository(String scmSpecificUrl, char delimiter) throws ScmRepositoryException
makeProviderScmRepository
in interface ScmProvider
ScmRepositoryException
public ScmProviderRepository makeProviderScmRepository(File path) throws ScmRepositoryException, UnknownRepositoryStructure
makeProviderScmRepository
in interface ScmProvider
ScmRepositoryException
UnknownRepositoryStructure
public List<String> validateScmUrl(String scmSpecificUrl, char delimiter)
validateScmUrl
in interface ScmProvider
scmSpecificUrl
- The SCM urldelimiter
- The delimiter used in the SCM urlpublic String getScmSpecificFilename()
getScmSpecificFilename
in interface ScmProvider
public AddScmResult add(ScmRepository repository, ScmFileSet fileSet) throws ScmException
add
in interface ScmProvider
repository
- the source control systemfileSet
- the files to be addedAddScmResult
that contains the files that have been addedScmException
- if anypublic AddScmResult add(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException
add
in interface ScmProvider
repository
- the source control systemfileSet
- the files to be addedmessage
- a string that is a comment on the new added fileAddScmResult
that contains the files that have been addedScmException
- if anypublic AddScmResult add(ScmRepository repository, ScmFileSet fileSet, CommandParameters commandParameters) throws ScmException
ScmProvider
add
in interface ScmProvider
repository
- the source control systemfileSet
- the files to be addedcommandParameters
- CommandParameters
AddScmResult
that contains the files that have been addedScmException
- if anypublic BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName) throws ScmException
branch
in interface ScmProvider
repository
- the source control systemfileSet
- the files to branch. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.branchName
- the branch name to apply to the filesScmException
- if anypublic BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName, String message) throws ScmException
branch
in interface ScmProvider
repository
- the source control systemfileSet
- the files to branch. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.branchName
- the branch name to apply to the filesmessage
- the commit message used for the tag creationScmException
- if anypublic BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName, ScmBranchParameters scmBranchParameters) throws ScmException
branch
in interface ScmProvider
repository
- the source control systemfileSet
- the files to branch. Implementations can also give the changes from the
ScmFileSet.getBasedir()
downwards.branchName
- the branch name to apply to the filesscmBranchParameters
- TODOScmException
- if anypublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, String branch) throws ScmException
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startDate
- the start date of the periodendDate
- the end date of the periodnumDays
- the number days before the current time if startdate and enddate are nullbranch
- the branch/tag nameScmException
- if anypublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, String branch, String datePattern) throws ScmException
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startDate
- the start date of the periodendDate
- the end date of the periodnumDays
- the number days before the current time if startdate and enddate are nullbranch
- the branch/tag namedatePattern
- the date pattern use in changelog output returned by scm toolScmException
- if anypublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, String startTag, String endTag) throws ScmException
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startTag
- the start tagendTag
- the end tagScmException
- if anypublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, String startTag, String endTag, String datePattern) throws ScmException
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startTag
- the start tagendTag
- the end tagdatePattern
- the date pattern use in changelog output returned by scm toolScmException
- if anypublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch) throws ScmException
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startDate
- the start date of the periodendDate
- the end date of the periodnumDays
- the number days before the current time if startdate and enddate are nullbranch
- the branch/tagScmException
- if anypublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch, String datePattern) throws ScmException
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startDate
- the start date of the periodendDate
- the end date of the periodnumDays
- the number days before the current time if startDate and endDate are nullbranch
- the branch/tagdatePattern
- the date pattern use in changelog output returned by scm toolScmException
- if anypublic ChangeLogScmResult changeLog(ChangeLogScmRequest scmRequest) throws ScmException
ScmProvider
changeLog
in interface ScmProvider
scmRequest
- request wrapping detailed parameters for the changelog commandScmException
- if anypublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startVersion
- the start branch/tag/revisionendVersion
- the end branch/tag/revisionScmException
- if anypublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startRevision, ScmVersion endRevision, String datePattern) throws ScmException
changeLog
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the changes about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.startRevision
- the start revisionendRevision
- the end revisiondatePattern
- the date pattern use in changelog output returned by scm toolScmException
- if anypublic CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, String tag, String message) throws ScmException
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.
checkIn
in interface ScmProvider
repository
- the source control systemfileSet
- the files to check in (sometimes called commit)tag
- tag or revisionmessage
- a string that is a comment on the changes that where doneScmException
- if anypublic CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException
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.
checkIn
in interface ScmProvider
repository
- the source control systemfileSet
- the files to check in (sometimes called commit)message
- a string that is a comment on the changes that where doneScmException
- if anypublic CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, ScmVersion revision, String message) throws ScmException
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.
checkIn
in interface ScmProvider
repository
- the source control systemfileSet
- the files to check in (sometimes called commit)revision
- branch/tag/revisionmessage
- a string that is a comment on the changes that where doneScmException
- if anypublic CheckOutScmResult checkOut(ScmRepository scmRepository, ScmFileSet scmFileSet, String tag, boolean recursive) throws ScmException
checkOut
in interface ScmProvider
scmRepository
- the source control systemscmFileSet
- the files are copied to the ScmFileSet.getBasedir()
locationtag
- tag or revisionrecursive
- whether to check out recursivelyScmException
- if anypublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, String tag) throws ScmException
checkOut
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationtag
- get the version defined by the tagScmException
- if anypublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet) throws ScmException
checkOut
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationScmException
- if anypublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion version) throws ScmException
checkOut
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationversion
- get the version defined by the revision, branch or tagScmException
- if anypublic CheckOutScmResult checkOut(ScmRepository scmRepository, ScmFileSet scmFileSet, boolean recursive) throws ScmException
checkOut
in interface ScmProvider
scmRepository
- the source control systemscmFileSet
- the files are copied to the ScmFileSet.getBasedir()
locationrecursive
- whether to check out recursivelyScmException
- if anypublic CheckOutScmResult checkOut(ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion version, boolean recursive) throws ScmException
checkOut
in interface ScmProvider
scmRepository
- the source control systemscmFileSet
- the files are copied to the ScmFileSet.getBasedir()
locationversion
- get the version defined by the revision, branch or tagrecursive
- whether to check out recursivelyScmException
- if anypublic CheckOutScmResult checkOut(ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion version, CommandParameters commandParameters) throws ScmException
ScmProvider
checkOut
in interface ScmProvider
scmRepository
- the source control systemscmFileSet
- the files are copied to the ScmFileSet.getBasedir()
locationversion
- get the version defined by the revision, branch or tagcommandParameters
- parametersScmException
- if anypublic DiffScmResult diff(ScmRepository repository, ScmFileSet fileSet, String startRevision, String endRevision) throws ScmException
diff
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationstartRevision
- the start revisionendRevision
- the end revisionScmException
- if anypublic DiffScmResult diff(ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException
diff
in interface ScmProvider
scmRepository
- the source control systemscmFileSet
- the files are copied to the ScmFileSet.getBasedir()
locationstartVersion
- the start branch/tag/revisionendVersion
- the end branch/tag/revisionScmException
- if anypublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate, String datePattern, boolean runChangelog) throws ScmException
ScmException
public EditScmResult edit(ScmRepository repository, ScmFileSet fileSet) throws ScmException
edit
in interface ScmProvider
repository
- the source control systemfileSet
- the files to make editableScmException
- if anypublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, String tag) throws ScmException
export
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationtag
- get the version defined by the tagScmException
- if anypublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, String tag, String outputDirectory) throws ScmException
export
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationtag
- get the version defined by the tagoutputDirectory
- the directory where the export will be storedScmException
- if anypublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet) throws ScmException
export
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationScmException
- if anypublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, ScmVersion version) throws ScmException
export
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationversion
- get the version defined by the branch/tag/revisionScmException
- if anypublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, String outputDirectory) throws ScmException
export
in interface ScmProvider
repository
- the source control systemfileSet
- the files are copied to the ScmFileSet.getBasedir()
locationversion
- get the version defined by the branch/tag/revisionoutputDirectory
- the directory where the export will be storedScmException
- if anypublic ListScmResult list(ScmRepository repository, ScmFileSet fileSet, boolean recursive, String tag) throws ScmException
list
in interface ScmProvider
repository
- the source control systemfileSet
- the files to listrecursive
- descend recursivelytag
- use the version defined by the tagScmException
- if anypublic ListScmResult list(ScmRepository repository, ScmFileSet fileSet, boolean recursive, ScmVersion version) throws ScmException
list
in interface ScmProvider
repository
- the source control systemfileSet
- the files to listrecursive
- descend recursivelyversion
- use the version defined by the branch/tag/revisionScmException
- if anypublic RemoveScmResult remove(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException
remove
in interface ScmProvider
repository
- the source control systemfileSet
- the files to be removedmessage
- TODOScmException
- if anypublic StatusScmResult status(ScmRepository repository, ScmFileSet fileSet) throws ScmException
ScmFileStatus
flags.status
in interface ScmProvider
repository
- the source control systemfileSet
- the files to know the status about. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.ScmException
- if anypublic TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tag) throws ScmException
tag
in interface ScmProvider
repository
- the source control systemfileSet
- the files to tag. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.tag
- the tag name to apply to the filesScmException
- if anypublic TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tag, String message) throws ScmException
tag
in interface ScmProvider
repository
- the source control systemfileSet
- the files to tag. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.tag
- the tag name to apply to the filesmessage
- the commit message used for the tag creationScmException
- if anypublic TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tagName, ScmTagParameters scmTagParameters) throws ScmException
ScmProvider
tag
in interface ScmProvider
repository
- the source control systemfileSet
- the files to tag. Implementations can also give the changes
from the ScmFileSet.getBasedir()
downwards.tagName
- the tag name to apply to the filesscmTagParameters
- bean to pass some paramters for tagging ScmTagParameters
ScmException
- if anypublic UntagScmResult untag(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
ScmProvider
untag
in interface ScmProvider
repository
- the source control systemfileSet
- a fileset with the relevant working directory as basedirparameters
- TODOScmException
- if anypublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag) throws ScmException
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copytag
- use the version defined by the tagScmException
- if anypublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, boolean runChangelog) throws ScmException
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copytag
- use the version defined by the tagrunChangelog
- Run the changelog command after the updateScmException
- if anypublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, String datePattern) throws ScmException
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copytag
- use the version defined by the tagdatePattern
- the date pattern use in changelog output returned by scm toolScmException
- if anypublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate) throws ScmException
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copytag
- use the version defined by the taglastUpdate
- TODOScmException
- if anypublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String tag, Date lastUpdate, String datePattern) throws ScmException
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copytag
- use the version defined by the taglastUpdate
- Date of last updatedatePattern
- the date pattern use in changelog output returned by scm toolScmException
- if anypublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet) throws ScmException
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyScmException
- if anypublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version) throws ScmException
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyversion
- use the version defined by the branch/tag/revisionScmException
- if anypublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, boolean runChangelog) throws ScmException
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyrunChangelog
- Run the changelog command after the updateScmException
- if anypublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, boolean runChangelog) throws ScmException
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyversion
- use the version defined by the branch/tag/revisionrunChangelog
- Run the changelog command after the updateScmException
- if anypublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, String datePattern) throws ScmException
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyversion
- use the version defined by the branch/tag/revisiondatePattern
- the date pattern use in changelog output returned by scm toolScmException
- if anypublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, Date lastUpdate) throws ScmException
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyversion
- use the version defined by the branch/tag/revisionlastUpdate
- TODOScmException
- if anypublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, Date lastUpdate, String datePattern) throws ScmException
update
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyversion
- use the version defined by the branch/tag/revisionlastUpdate
- Date of last updatedatePattern
- the date pattern use in changelog output returned by scm toolScmException
- if anypublic UnEditScmResult unedit(ScmRepository repository, ScmFileSet fileSet) throws ScmException
ScmProvider.edit(
org.apache.maven.scm.repository.ScmRepository, org.apache.maven.scm.ScmFileSet)
.
It makes the file read-only again.unedit
in interface ScmProvider
repository
- the source control systemfileSet
- the files to make uneditableScmException
- if anypublic BlameScmResult blame(ScmRepository repository, ScmFileSet fileSet, String filename) throws ScmException
blame
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyfilename
- fileScmException
- if anypublic BlameScmResult blame(BlameScmRequest blameScmRequest) throws ScmException
blame
in interface ScmProvider
blameScmRequest
- TODOScmException
- if anypublic MkdirScmResult mkdir(ScmRepository repository, ScmFileSet fileSet, String message, boolean createInLocal) throws ScmException
mkdir
in interface ScmProvider
repository
- TODOfileSet
- TODOmessage
- TODOcreateInLocal
- TODOScmException
- if anypublic InfoScmResult info(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
info
in interface ScmProvider
repository
- the source control systemfileSet
- location of your local copyparameters
- some parameters (not use currently but for future use)null
ScmException
- if anypublic RemoteInfoScmResult remoteInfo(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
remoteInfo
in interface ScmProvider
repository
- the source control systemfileSet
- not use currently but for future useparameters
- some parameters (not use currently but for future use)null
ScmException
- if anyCopyright © 2003–2024 The Apache Software Foundation. All rights reserved.