|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.subversion.svnclientadapter.AbstractClientAdapter
public abstract class AbstractClientAdapter
Default implementation of some of the methods of ISVNClientAdapter
Field Summary |
---|
Fields inherited from interface org.tigris.subversion.svnclientadapter.ISVNClientAdapter |
---|
DEFAULT_LOG_PROPERTIES, REPOSITORY_FSTYPE_BDB, REPOSITORY_FSTYPE_FSFS |
Constructor Summary | |
---|---|
AbstractClientAdapter()
|
Method Summary | |
---|---|
SVNKeywords |
addKeywords(java.io.File path,
SVNKeywords keywords)
add some keyword to the keywords substitution list |
void |
addPasswordCallback(ISVNPromptUserPassword callback)
Add a callback for prompting for username, password SSL etc... |
void |
addToIgnoredPatterns(java.io.File path,
java.lang.String pattern)
add a pattern to svn:ignore property |
boolean |
canCommitAcrossWC()
Indicates whether the commitAcrossWC method is supported in the adapter |
long[] |
commitAcrossWC(java.io.File[] paths,
java.lang.String message,
boolean recurse,
boolean keepLocks,
boolean Atomic)
Commits changes to the repository. |
void |
createPatch(java.io.File[] paths,
java.io.File relativeToPath,
java.io.File outFile,
boolean recurse)
create a patch from local differences. |
void |
diff(java.io.File[] paths,
java.io.File outFile,
boolean recurse)
display the combined differences for an array of paths. |
java.util.List |
getIgnoredPatterns(java.io.File path)
get the ignored patterns for the given directory if path is not a directory, returns null |
ISVNInfo |
getInfo(SVNUrl url)
Get information about an URL. |
SVNKeywords |
getKeywords(java.io.File path)
returns the keywords used for substitution for the given resource |
ISVNLogMessage[] |
getLogMessages(java.io.File arg0,
SVNRevision arg1,
SVNRevision arg2)
Get the log messages for a set of revision(s) |
ISVNLogMessage[] |
getLogMessages(java.io.File path,
SVNRevision revisionStart,
SVNRevision revisionEnd,
boolean fetchChangePath)
Get the log messages for a set of revision(s) |
ISVNLogMessage[] |
getLogMessages(java.io.File path,
SVNRevision revisionStart,
SVNRevision revisionEnd,
boolean stopOnCopy,
boolean fetchChangePath)
Retrieve the log messages for an item |
ISVNLogMessage[] |
getLogMessages(java.io.File path,
SVNRevision revisionStart,
SVNRevision revisionEnd,
boolean stopOnCopy,
boolean fetchChangePath,
long limit)
Retrieve the log messages for an item |
ISVNLogMessage[] |
getLogMessages(java.io.File path,
SVNRevision pegRevision,
SVNRevision revisionStart,
SVNRevision revisionEnd,
boolean stopOnCopy,
boolean fetchChangePath,
long limit,
boolean includeMergedRevisions)
Retrieve the log messages for an item |
ISVNLogMessage[] |
getLogMessages(SVNUrl url,
java.lang.String[] paths,
SVNRevision revStart,
SVNRevision revEnd,
boolean stopOnCopy,
boolean fetchChangePath)
Get the log messages for a set paths and revision(s) |
ISVNLogMessage[] |
getLogMessages(SVNUrl arg0,
SVNRevision arg1,
SVNRevision arg2)
Get the log messages for a set of revision(s) |
ISVNLogMessage[] |
getLogMessages(SVNUrl url,
SVNRevision revisionStart,
SVNRevision revisionEnd,
boolean fetchChangePath)
Get the log messages for a set of revision(s) |
ISVNLogMessage[] |
getLogMessages(SVNUrl url,
SVNRevision pegRevision,
SVNRevision revisionStart,
SVNRevision revisionEnd,
boolean stopOnCopy,
boolean fetchChangePath,
long limit)
Retrieve the log messages for an item |
ISVNLogMessage[] |
getLogMessages(SVNUrl url,
SVNRevision pegRevision,
SVNRevision revisionStart,
SVNRevision revisionEnd,
boolean stopOnCopy,
boolean fetchChangePath,
long limit,
boolean includeMergedRevisions)
Retrieve the log messages for an item |
static boolean |
isOsWindows()
Answer whether running on Windows OS. |
void |
merge(SVNUrl path1,
SVNRevision revision1,
SVNUrl path2,
SVNRevision revision2,
java.io.File localPath,
boolean force,
boolean recurse)
Merge changes from two paths into a new local path. |
void |
merge(SVNUrl path1,
SVNRevision revision1,
SVNUrl path2,
SVNRevision revision2,
java.io.File localPath,
boolean force,
boolean recurse,
boolean dryRun)
Merge changes from two paths into a new local path. |
void |
mkdir(SVNUrl url,
boolean makeParents,
java.lang.String message)
Creates a directory directly in a repository |
protected void |
notImplementedYet()
|
ISVNProperty |
propertyGet(SVNUrl url,
java.lang.String propertyName)
get a property or null if property is not found |
SVNKeywords |
removeKeywords(java.io.File path,
SVNKeywords keywords)
remove some keywords to the keywords substitution list |
void |
setIgnoredPatterns(java.io.File path,
java.util.List patterns)
set the ignored patterns for the given directory |
void |
setKeywords(java.io.File path,
SVNKeywords keywords,
boolean recurse)
set the keywords substitution for the given resource |
boolean |
statusReturnsRemoteInfo()
Indicates whether a status call that contacts the server includes the remote info in the status object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractClientAdapter()
Method Detail |
---|
public void setKeywords(java.io.File path, SVNKeywords keywords, boolean recurse) throws SVNClientException
ISVNClientAdapter
setKeywords
in interface ISVNClientAdapter
SVNClientException
public SVNKeywords addKeywords(java.io.File path, SVNKeywords keywords) throws SVNClientException
ISVNClientAdapter
addKeywords
in interface ISVNClientAdapter
SVNClientException
public SVNKeywords removeKeywords(java.io.File path, SVNKeywords keywords) throws SVNClientException
ISVNClientAdapter
removeKeywords
in interface ISVNClientAdapter
SVNClientException
public java.util.List getIgnoredPatterns(java.io.File path) throws SVNClientException
ISVNClientAdapter
getIgnoredPatterns
in interface ISVNClientAdapter
SVNClientException
public ISVNLogMessage[] getLogMessages(java.io.File arg0, SVNRevision arg1, SVNRevision arg2) throws SVNClientException
ISVNClientAdapter
getLogMessages
in interface ISVNClientAdapter
SVNClientException
public ISVNLogMessage[] getLogMessages(SVNUrl arg0, SVNRevision arg1, SVNRevision arg2) throws SVNClientException
ISVNClientAdapter
getLogMessages
in interface ISVNClientAdapter
SVNClientException
public ISVNLogMessage[] getLogMessages(SVNUrl url, java.lang.String[] paths, SVNRevision revStart, SVNRevision revEnd, boolean stopOnCopy, boolean fetchChangePath) throws SVNClientException
ISVNClientAdapter
getLogMessages
in interface ISVNClientAdapter
SVNClientException
public ISVNLogMessage[] getLogMessages(java.io.File path, SVNRevision revisionStart, SVNRevision revisionEnd, boolean fetchChangePath) throws SVNClientException
ISVNClientAdapter
getLogMessages
in interface ISVNClientAdapter
fetchChangePath
- Whether or not to interogate the
repository for the verbose log information containing the list
of paths touched by the delta specified by
revisionStart
and revisionEnd
.
Setting this to false
results in a more performant
and memory efficient operation.
SVNClientException
public ISVNLogMessage[] getLogMessages(java.io.File path, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath) throws SVNClientException
ISVNClientAdapter
getLogMessages
in interface ISVNClientAdapter
path
- path or url to get the log message for.revisionStart
- first revision to showrevisionEnd
- last revision to showstopOnCopy
- do not continue on copy operationsfetchChangePath
- returns the paths of the changed items in the
returned objects
SVNClientException
public ISVNLogMessage[] getLogMessages(java.io.File path, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit) throws SVNClientException
ISVNClientAdapter
getLogMessages
in interface ISVNClientAdapter
path
- path to get the log message for.revisionStart
- first revision to showrevisionEnd
- last revision to showstopOnCopy
- do not continue on copy operationsfetchChangePath
- returns the paths of the changed items in the
returned objectslimit
- limit the number of log messages (if 0 or less no
limit)
SVNClientException
public ISVNLogMessage[] getLogMessages(SVNUrl url, SVNRevision revisionStart, SVNRevision revisionEnd, boolean fetchChangePath) throws SVNClientException
ISVNClientAdapter
getLogMessages
in interface ISVNClientAdapter
fetchChangePath
- Whether or not to interogate the
repository for the verbose log information containing the list
of paths touched by the delta specified by
revisionStart
and revisionEnd
.
Setting this to false
results in a more performant
and memory efficient operation.
SVNClientException
public ISVNLogMessage[] getLogMessages(SVNUrl url, SVNRevision pegRevision, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit) throws SVNClientException
ISVNClientAdapter
getLogMessages
in interface ISVNClientAdapter
url
- url to get the log message for.pegRevision
- peg revision for URLrevisionStart
- first revision to showrevisionEnd
- last revision to showstopOnCopy
- do not continue on copy operationsfetchChangePath
- returns the paths of the changed items in the
returned objectslimit
- limit the number of log messages (if 0 or less no
limit)
SVNClientException
public ISVNLogMessage[] getLogMessages(java.io.File path, SVNRevision pegRevision, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit, boolean includeMergedRevisions) throws SVNClientException
ISVNClientAdapter
getLogMessages
in interface ISVNClientAdapter
path
- path to get the log message for.pegRevision
- peg revision for URLrevisionStart
- first revision to showrevisionEnd
- last revision to showstopOnCopy
- do not continue on copy operationsfetchChangePath
- returns the paths of the changed items in the
returned objectslimit
- limit the number of log messages (if 0 or less no
limit)includeMergedRevisions
- include revisions that were merged
SVNClientException
public ISVNLogMessage[] getLogMessages(SVNUrl url, SVNRevision pegRevision, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit, boolean includeMergedRevisions) throws SVNClientException
ISVNClientAdapter
getLogMessages
in interface ISVNClientAdapter
url
- url to get the log message for.pegRevision
- peg revision for URLrevisionStart
- first revision to showrevisionEnd
- last revision to showstopOnCopy
- do not continue on copy operationsfetchChangePath
- returns the paths of the changed items in the
returned objectslimit
- limit the number of log messages (if 0 or less no
limit)includeMergedRevisions
- include revisions that were merged
SVNClientException
public void setIgnoredPatterns(java.io.File path, java.util.List patterns) throws SVNClientException
ISVNClientAdapter
setIgnoredPatterns
in interface ISVNClientAdapter
SVNClientException
public void addToIgnoredPatterns(java.io.File path, java.lang.String pattern) throws SVNClientException
ISVNClientAdapter
addToIgnoredPatterns
in interface ISVNClientAdapter
SVNClientException
public SVNKeywords getKeywords(java.io.File path) throws SVNClientException
ISVNClientAdapter
getKeywords
in interface ISVNClientAdapter
SVNClientException
public void addPasswordCallback(ISVNPromptUserPassword callback)
ISVNClientAdapter
addPasswordCallback
in interface ISVNClientAdapter
public boolean statusReturnsRemoteInfo()
ISVNClientAdapter
statusReturnsRemoteInfo
in interface ISVNClientAdapter
public long[] commitAcrossWC(java.io.File[] paths, java.lang.String message, boolean recurse, boolean keepLocks, boolean Atomic) throws SVNClientException
ISVNClientAdapter
commitAcrossWC
in interface ISVNClientAdapter
paths
- files to commit.message
- log message.recurse
- whether the operation should be done recursively.keepLocks
- whether to keep locks on files that are committed.Atomic
- whether to attempt to perform the commit from multiple
working copies atomically. Files from the same repository will be
processed with one commit operation. If files span multiple repositories
they will be processed in multiple commits.
When atomic is false, you will get one commit per WC.
SVNClientException
protected void notImplementedYet() throws SVNClientException
SVNClientException
public boolean canCommitAcrossWC()
ISVNClientAdapter
canCommitAcrossWC
in interface ISVNClientAdapter
public void mkdir(SVNUrl url, boolean makeParents, java.lang.String message) throws SVNClientException
ISVNClientAdapter
mkdir
in interface ISVNClientAdapter
SVNClientException
public static boolean isOsWindows()
public ISVNInfo getInfo(SVNUrl url) throws SVNClientException
ISVNClientAdapter
getInfo
in interface ISVNClientAdapter
SVNClientException
public void merge(SVNUrl path1, SVNRevision revision1, SVNUrl path2, SVNRevision revision2, java.io.File localPath, boolean force, boolean recurse, boolean dryRun) throws SVNClientException
ISVNClientAdapter
merge
in interface ISVNClientAdapter
path1
- first path or urlrevision1
- first revisionpath2
- second path or urlrevision2
- second revisionlocalPath
- target local pathforce
- overwrite local changesrecurse
- traverse into subdirectoriesdryRun
- do not update working copy
SVNClientException
public void merge(SVNUrl path1, SVNRevision revision1, SVNUrl path2, SVNRevision revision2, java.io.File localPath, boolean force, boolean recurse) throws SVNClientException
ISVNClientAdapter
merge
in interface ISVNClientAdapter
path1
- first path or urlrevision1
- first revisionpath2
- second path or urlrevision2
- second revisionlocalPath
- target local pathforce
- overwrite local changesrecurse
- traverse into subdirectories
SVNClientException
public ISVNProperty propertyGet(SVNUrl url, java.lang.String propertyName) throws SVNClientException
ISVNClientAdapter
propertyGet
in interface ISVNClientAdapter
SVNClientException
public void diff(java.io.File[] paths, java.io.File outFile, boolean recurse) throws SVNClientException
ISVNClientAdapter
diff
in interface ISVNClientAdapter
SVNClientException
public void createPatch(java.io.File[] paths, java.io.File relativeToPath, java.io.File outFile, boolean recurse) throws SVNClientException
ISVNClientAdapter
createPatch
in interface ISVNClientAdapter
relativeToPath
- - create patch relative to this location
SVNClientException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |