Interface ISVNClientAdapter
- All Known Implementing Classes:
AbstractClientAdapter
public interface ISVNClientAdapter
High level API for Subversion
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a callback for resolving conflicts during up/sw/mergevoid
addDirectory
(File dir, boolean recurse) Adds a directory to the repository.void
addDirectory
(File dir, boolean recurse, boolean force) Adds a directory to the repository.void
Adds a file (or directory) to the repository.addKeywords
(File path, SVNKeywords keywords) add some keyword to the keywords substitution listvoid
addNotifyListener
(ISVNNotifyListener listener) Add a notification listenervoid
addPasswordCallback
(ISVNPromptUserPassword callback) Add a callback for prompting for username, password SSL etc...void
addToIgnoredPatterns
(File path, String pattern) add a pattern to svn:ignore propertyannotate
(File file, SVNRevision revisionStart, SVNRevision revisionEnd) Output the content of specified file with revision and author information in-line.annotate
(File file, SVNRevision revisionStart, SVNRevision revisionEnd, boolean ignoreMimeType, boolean includeMergedRevisions) Output the content of specified file with revision and author information in-line.annotate
(File file, SVNRevision revisionStart, SVNRevision revisionEnd, SVNRevision pegRevision, boolean ignoreMimeType, boolean includeMergedRevisions) Output the content of specified file with revision and author information in-line.annotate
(SVNUrl url, SVNRevision revisionStart, SVNRevision revisionEnd) Output the content of specified url with revision and author information in-line.annotate
(SVNUrl url, SVNRevision revisionStart, SVNRevision revisionEnd, SVNRevision pegRevision, boolean ignoreMimeType, boolean includeMergedRevisions) Output the content of specified url with revision and author information in-line.void
Cancel the current operationboolean
Indicates whether the commitAcrossWC method is supported in the adaptervoid
checkout
(SVNUrl moduleName, File destPath, SVNRevision revision, boolean recurse) Executes a revision checkout.void
checkout
(SVNUrl moduleName, File destPath, SVNRevision revision, int depth, boolean ignoreExternals, boolean force) Executes a revision checkout.void
Perform a clanup on the working copy.long
Commits changes to the repository.long
Commits changes to the repository.long[]
commitAcrossWC
(File[] paths, String message, boolean recurse, boolean keepLocks, boolean atomic) Commits changes to the repository.void
immediately commit a copy of WC to URLvoid
copy and schedule for addition (with history)void
immediately commit a copy of WC to URLvoid
copy
(SVNUrl[] srcUrls, SVNUrl destUrl, String message, SVNRevision revision, boolean copyAsChild, boolean makeParents) complete server-side copy with option to create intermediate folders; used to branch & tagvoid
copy
(SVNUrl srcUrl, File destPath, SVNRevision revision) check out URL into WC, schedule for additionvoid
copy
(SVNUrl srcUrl, File destPath, SVNRevision revision, boolean copyAsChild, boolean makeParents) check out URL into WC, schedule for additionvoid
copy
(SVNUrl srcUrl, File destPath, SVNRevision revision, SVNRevision pegRevision, boolean copyAsChild, boolean makeParents) check out URL into WC, schedule for additionvoid
copy
(SVNUrl srcUrl, SVNUrl destUrl, String message, SVNRevision revision) complete server-side copy; used to branch & tagvoid
copy
(SVNUrl srcUrl, SVNUrl destUrl, String message, SVNRevision revision, boolean makeParents) complete server-side copy with option to create intermediate folders; used to branch & tagvoid
createPatch
(File[] paths, File relativeToPath, File outFile, boolean recurse) create a patch from local differences.void
createRepository
(File path, String repositoryType) Create a new, empty repository at pathvoid
display the combined differences for an array of paths.void
display the differences between two paths.void
diff
(File oldPath, SVNRevision oldPathRevision, File newPath, SVNRevision newPathRevision, File outFile, boolean recurse) display the differences between two paths.void
diff
(File oldPath, SVNRevision oldPathRevision, File newPath, SVNRevision newPathRevision, File outFile, boolean recurse, boolean ignoreAncestry, boolean noDiffDeleted, boolean force) display the differences between two paths.void
diff
(File path, SVNUrl url, SVNRevision urlRevision, File outFile, boolean recurse) display the differences between WC and url.void
diff
(SVNUrl url, SVNRevision oldUrlRevision, SVNRevision newUrlRevision, File outFile, boolean recurse) display the differences between two urls.void
diff
(SVNUrl target, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, File outFile, boolean recurse) Display the differences between two paths.void
diff
(SVNUrl target, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, File outFile, int depth, boolean ignoreAncestry, boolean noDiffDeleted, boolean force) Display the differences between two paths.void
diff
(SVNUrl oldUrl, SVNRevision oldUrlRevision, SVNUrl newUrl, SVNRevision newUrlRevision, File outFile, boolean recurse) display the differences between two urls.void
diff
(SVNUrl oldUrl, SVNRevision oldUrlRevision, SVNUrl newUrl, SVNRevision newUrlRevision, File outFile, boolean recurse, boolean ignoreAncestry, boolean noDiffDeleted, boolean force) display the differences between two urls.diffSummarize
(File path, SVNUrl toUrl, SVNRevision toRevision, boolean recurse) diffSummarize
(SVNUrl target, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, int depth, boolean ignoreAncestry) Produce a diff summary which lists the items changed between path and revision pairs.diffSummarize
(SVNUrl target1, SVNRevision revision1, SVNUrl target2, SVNRevision revision2, int depth, boolean ignoreAncestry) Produce a diff summary which lists the items changed between path and revision pairs.void
dispose()
release the native peer (should not depend on finalize)void
Exports a clean directory tree from the working copy specified by PATH1 into PATH2.void
doExport
(SVNUrl srcUrl, File destPath, SVNRevision revision, boolean force) Exports a clean directory tree from the repository specified by srcUrl, at revision revisionvoid
Import file or directory PATH into repository directory URL at headReturns the name of the Subversion administrative working copy directory.getContent
(File path, SVNRevision revision) get the content of a filegetContent
(SVNUrl url, SVNRevision revision) get the content of a filegetContent
(SVNUrl url, SVNRevision revision, SVNRevision pegRevision) get the content of a filegetDirEntry
(File path, SVNRevision revision) get the dirEntry for the given directorygetDirEntry
(SVNUrl url, SVNRevision revision) get the dirEntry for the given urlgetIgnoredPatterns
(File path) get the ignored patterns for the given directory if path is not a directory, returns nullGet information about a file or directory.ISVNInfo[]
Get information about a file or directory.Get information about an URL.getInfo
(SVNUrl url, SVNRevision revision, SVNRevision peg) Get information about an URL.getInfoFromWorkingCopy
(File file) Get information about a file or directory from working copy.getKeywords
(File path) returns the keywords used for substitution for the given resourcegetList
(File path, SVNRevision revision, boolean recurse) List directory entries of a directorygetList
(File path, SVNRevision revision, SVNRevision pegRevision, boolean recurse) List directory entries of a directorygetList
(SVNUrl url, SVNRevision revision, boolean recurse) List directory entries of a URLgetList
(SVNUrl url, SVNRevision revision, SVNRevision pegRevision, boolean recurse) List directory entries of a URLgetListWithLocks
(SVNUrl url, SVNRevision revision, SVNRevision pegRevision, boolean recurse) List directory entries of a URL with lock informationgetLogMessages
(File path, SVNRevision revisionStart, SVNRevision revisionEnd) Get the log messages for a set of revision(s)getLogMessages
(File path, SVNRevision revisionStart, SVNRevision revisionEnd, boolean fetchChangePath) Get the log messages for a set of revision(s)getLogMessages
(File path, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath) Retrieve the log messages for an itemgetLogMessages
(File path, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit) Retrieve the log messages for an itemgetLogMessages
(File path, SVNRevision pegRevision, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit, boolean includeMergedRevisions) Retrieve the log messages for an itemvoid
getLogMessages
(File path, SVNRevision pegRevision, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit, boolean includeMergedRevisions, String[] requestedProperties, ISVNLogMessageCallback callback) Retrieve the log messages for an itemgetLogMessages
(SVNUrl url, String[] paths, SVNRevision revStart, SVNRevision revEnd, boolean stopOnCopy, boolean fetchChangePath) Get the log messages for a set paths and revision(s)getLogMessages
(SVNUrl url, SVNRevision revisionStart, SVNRevision revisionEnd) Get the log messages for a set of revision(s)getLogMessages
(SVNUrl url, SVNRevision revisionStart, SVNRevision revisionEnd, boolean fetchChangePath) Get the log messages for a set of revision(s)getLogMessages
(SVNUrl url, SVNRevision pegRevision, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit) Retrieve the log messages for an itemgetLogMessages
(SVNUrl url, SVNRevision pegRevision, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit, boolean includeMergedRevisions) Retrieve the log messages for an itemvoid
getLogMessages
(SVNUrl url, SVNRevision pegRevision, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit, boolean includeMergedRevisions, String[] requestedProperties, ISVNLogMessageCallback callback) Retrieve the log messages for an itemgetMergeInfo
(File path, SVNRevision revision) Get merge info forpath
atrevision
.getMergeInfo
(SVNUrl url, SVNRevision revision) Get merge info forurl
atrevision
.getMergeinfoLog
(int kind, File path, SVNRevision pegRevision, SVNUrl mergeSourceUrl, SVNRevision srcPegRevision, boolean discoverChangedPaths) Retrieve either merged or eligible-to-be-merged revisions.getMergeinfoLog
(int kind, SVNUrl url, SVNRevision pegRevision, SVNUrl mergeSourceUrl, SVNRevision srcPegRevision, boolean discoverChangedPaths) Retrieve either merged or eligible-to-be-merged revisions.getProperties
(File path) Get all the properties for the given file or dirgetProperties
(File path, boolean descend) Get all the properties for the given file or dirgetProperties
(SVNUrl url) Get all the properties for the given urlgetProperties
(SVNUrl url, SVNRevision revision, SVNRevision peg) Get all the properties for the given urlgetProperties
(SVNUrl url, SVNRevision revision, SVNRevision peg, boolean recurse) Get all the properties for the given urlGet all the properties for the given file or dir, including inheritedgetPropertiesIncludingInherited
(File path, boolean includeEmptyProperties, boolean includeClosestOnly, List<String> filterProperties) Get all the properties for the given file or dir, including inheritedGet all the properties for the given URL, including inheritedgetPropertiesIncludingInherited
(SVNUrl path, boolean includeEmptyProperties, boolean includeClosestOnly, List<String> filterProperties) Get all the properties for the given URL, including inheritedgetRevProperties
(SVNUrl url, SVNRevision.Number revision) Get all the revision properties for the given url at a revisiongetRevProperty
(SVNUrl path, SVNRevision.Number revisionNo, String propName) get a revision property for a given revisiongetSingleStatus
(File path) Returns the status of a single file in the path.Returns the status of given resourcesReturns the status of path and its children.Returns the status of path and its children.getStatus
(File path, boolean descend, boolean getAll, boolean contactServer, boolean ignoreExternals) Returns the status of path and its children.getStatus
(File path, boolean descend, boolean getAll, boolean contactServer, boolean ignoreExternals, boolean noIgnore, ISVNStatusCallback callback) Returns the status of path and its children.getStatus
(File path, boolean descend, boolean getAll, boolean contactServer, boolean ignoreExternals, ISVNStatusCallback callback) Returns the status of path and its children.boolean
isAdminDirectory
(String name) Returns whether the passed folder name is a Subversion administrative working copy directory.boolean
Returns whether the client adapter implementation is threadsafevoid
Lock a working copy itemvoid
Lock a working copy itemvoid
merge
(SVNUrl url, SVNRevision pegRevision, SVNRevisionRange[] revisions, File localPath, boolean force, int depth, boolean ignoreAncestry, boolean dryRun, boolean recordOnly) Merge set of revisions into a new local path.void
merge
(SVNUrl path1, SVNRevision revision1, SVNUrl path2, SVNRevision revision2, 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, File localPath, boolean force, boolean recurse, boolean dryRun) Merge changes from two paths into a new local path.void
merge
(SVNUrl path1, SVNRevision revision1, SVNUrl path2, SVNRevision revision2, File localPath, boolean force, boolean recurse, boolean dryRun, boolean ignoreAncestry) Merge changes from two paths into a new local path.void
merge
(SVNUrl path1, SVNRevision revision1, SVNUrl path2, SVNRevision revision2, File localPath, boolean force, int depth, boolean dryRun, boolean ignoreAncestry, boolean recordOnly) Merge changes from two paths into a new local path.void
mergeReintegrate
(SVNUrl path, SVNRevision pegRevision, File localPath, boolean force, boolean dryRun) Perform a reintegration merge of path into localPath.void
creates a directory on disk and schedules it for addition.void
Creates a directory directly in a repositoryvoid
Creates a directory directly in a repositoryvoid
Moves or renames a file.void
move
(SVNUrl srcUrl, SVNUrl destUrl, String message, SVNRevision revision) Moves or renames a file.void
propertyDel
(File path, String propertyName, boolean recurse) delete a propertypropertyGet
(File path, String propertyName) get a property or null if property is not foundpropertyGet
(SVNUrl url, String propertyName) get a property or null if property is not foundpropertyGet
(SVNUrl url, SVNRevision revision, SVNRevision peg, String propertyName) get a property or null if property is not foundvoid
propertySet
(File path, String propertyName, File propertyFile, boolean recurse) set a property using the content of a filevoid
propertySet
(File path, String propertyName, String propertyValue, boolean recurse) set a propertyvoid
propertySet
(SVNUrl url, SVNRevision.Number baseRev, String propertyName, String propertyValue, String message) set a propertyvoid
Rewrite the url's in the working copyvoid
the item is scheduled for deletion upon the next commit.void
item is deleted from the repository via an immediate commit.removeKeywords
(File path, SVNKeywords keywords) remove some keywords to the keywords substitution listvoid
removeNotifyListener
(ISVNNotifyListener listener) Remove a notification listenervoid
Remove 'conflicted' state on working copy files or directoriesvoid
Remove 'conflicted' state on working copy files or directoriesvoid
Restore pristine working copy file (undo all local edits)void
setConfigDirectory
(File dir) Set the configuration directory.void
setIgnoredPatterns
(File path, List patterns) set the ignored patterns for the given directoryvoid
setKeywords
(File path, SVNKeywords keywords, boolean recurse) set the keywords substitution for the given resourcevoid
setPassword
(String password) Sets the password.void
setProgressListener
(ISVNProgressListener progressListener) Set a progress listenervoid
setRevProperty
(SVNUrl path, SVNRevision.Number revisionNo, String propName, String propertyData, boolean force) set the revision property for a given revisionvoid
setUsername
(String username) Sets the username.boolean
Indicates whether a status call that contacts the server includes the remote info in the status objectString[]
suggestMergeSources
(File path) Return an ordered list of suggested merge source URLs.String[]
suggestMergeSources
(SVNUrl url, SVNRevision peg) Return an ordered list of suggested merge source URLs.void
switchToUrl
(File path, SVNUrl url, SVNRevision revision, boolean recurse) Update the working copy to mirror a new URL within the repository.void
switchToUrl
(File path, SVNUrl url, SVNRevision revision, int depth, boolean setDepth, boolean ignoreExternals, boolean force) Update the working copy to mirror a new URL within the repository.void
switchToUrl
(File path, SVNUrl url, SVNRevision revision, SVNRevision pegRevision, int depth, boolean setDepth, boolean ignoreExternals, boolean force) Update the working copy to mirror a new URL within the repository.void
switchToUrl
(File path, SVNUrl url, SVNRevision revision, SVNRevision pegRevision, int depth, boolean setDepth, boolean ignoreExternals, boolean force, boolean ignoreAncestry) Update the working copy to mirror a new URL within the repository.void
Unlock a working copy itemvoid
Unlock a working copy itemlong[]
update
(File[] path, SVNRevision revision, boolean recurse, boolean ignoreExternals) Updates the directories or files from repositorylong[]
update
(File[] path, SVNRevision revision, int depth, boolean setDepth, boolean ignoreExternals, boolean force) Updates the directories or files from repositorylong
update
(File path, SVNRevision revision, boolean recurse) Update a file or a directorylong
update
(File path, SVNRevision revision, int depth, boolean setDepth, boolean ignoreExternals, boolean force) Update a file or a directoryvoid
Recursively upgrade a working copy to a new metadata storage format.
-
Field Details
-
REPOSITORY_FSTYPE_BDB
constant identifying the "bdb" repository type- See Also:
-
REPOSITORY_FSTYPE_FSFS
constant identifying the "fsfs" repository type- See Also:
-
DEFAULT_LOG_PROPERTIES
-
-
Method Details
-
isThreadsafe
boolean isThreadsafe()Returns whether the client adapter implementation is threadsafe -
addNotifyListener
Add a notification listener- Parameters:
listener
-
-
removeNotifyListener
Remove a notification listener- Parameters:
listener
-
-
getNotificationHandler
SVNNotificationHandler getNotificationHandler()- Returns:
- the notification handler
-
setUsername
Sets the username.- Parameters:
username
-
-
setPassword
Sets the password.- Parameters:
password
-
-
addPasswordCallback
Add a callback for prompting for username, password SSL etc...- Parameters:
callback
-
-
addConflictResolutionCallback
Add a callback for resolving conflicts during up/sw/merge- Parameters:
callback
-
-
setProgressListener
Set a progress listener- Parameters:
progressListener
-
-
addFile
Adds a file (or directory) to the repository.- Parameters:
file
-- Throws:
SVNClientException
-
addDirectory
Adds a directory to the repository.- Parameters:
dir
-recurse
-- Throws:
SVNClientException
-
addDirectory
Adds a directory to the repository.- Parameters:
dir
-recurse
-force
-- Throws:
SVNClientException
-
checkout
void checkout(SVNUrl moduleName, File destPath, SVNRevision revision, boolean recurse) throws SVNClientException Executes a revision checkout.- Parameters:
moduleName
- name of the module to checkout.destPath
- destination directory for checkout.revision
- the revision number to checkout. If the number is -1 then it will checkout the latest revision.recurse
- whether you want it to checkout files recursively.- Throws:
SVNClientException
-
checkout
void checkout(SVNUrl moduleName, File destPath, SVNRevision revision, int depth, boolean ignoreExternals, boolean force) throws SVNClientException Executes a revision checkout.- Parameters:
moduleName
- name of the module to checkout.destPath
- destination directory for checkout.revision
- the revision number to checkout. If the number is -1 then it will checkout the latest revision.depth
- how deep to checkout files recursively.ignoreExternals
- if externals are ignored during checkout.force
- allow unversioned paths that obstruct adds.- Throws:
SVNClientException
-
commit
Commits changes to the repository. This usually requires authentication, see Auth.- Parameters:
paths
- files to commit.message
- log message.recurse
- whether the operation should be done recursively.- Returns:
- Returns a long representing the revision. It returns a -1 if the revision number is invalid.
- Throws:
SVNClientException
-
commit
long commit(File[] paths, String message, boolean recurse, boolean keepLocks) throws SVNClientException Commits changes to the repository. This usually requires authentication, see Auth.- Parameters:
paths
- files to commit.message
- log message.recurse
- whether the operation should be done recursively.keepLocks
-- Returns:
- Returns a long representing the revision. It returns a -1 if the revision number is invalid.
- Throws:
SVNClientException
-
commitAcrossWC
long[] commitAcrossWC(File[] paths, String message, boolean recurse, boolean keepLocks, boolean atomic) throws SVNClientException Commits changes to the repository. This usually requires authentication, see Auth. This differs from the normal commit method in that it can accept paths from more than one working copy.- Parameters:
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.- Returns:
- Returns an array of longs representing the revisions. It returns a -1 if the revision number is invalid.
- Throws:
SVNClientException
-
getPostCommitError
String getPostCommitError() -
getList
List directory entries of a URL- Parameters:
url
-revision
-recurse
-- Returns:
- an array of ISVNDirEntries
- Throws:
SVNClientException
-
getList
ISVNDirEntry[] getList(SVNUrl url, SVNRevision revision, SVNRevision pegRevision, boolean recurse) throws SVNClientException List directory entries of a URL- Parameters:
url
-revision
-pegRevision
-recurse
-- Returns:
- an array of ISVNDirEntries
- Throws:
SVNClientException
-
getListWithLocks
ISVNDirEntryWithLock[] getListWithLocks(SVNUrl url, SVNRevision revision, SVNRevision pegRevision, boolean recurse) throws SVNClientException List directory entries of a URL with lock information- Parameters:
url
-revision
-pegRevision
-recurse
-- Returns:
- an array of ISVNDirEntries
- Throws:
SVNClientException
-
getList
List directory entries of a directory- Parameters:
path
-revision
-recurse
-- Returns:
- an array of ISVNDirEntries
- Throws:
SVNClientException
-
getList
ISVNDirEntry[] getList(File path, SVNRevision revision, SVNRevision pegRevision, boolean recurse) throws SVNClientException List directory entries of a directory- Parameters:
path
-revision
-pegRevision
-recurse
-- Returns:
- an array of ISVNDirEntries
- Throws:
SVNClientException
-
getDirEntry
get the dirEntry for the given url- Parameters:
url
-revision
-- Returns:
- an ISVNDirEntry
- Throws:
SVNClientException
-
getDirEntry
get the dirEntry for the given directory- Parameters:
path
-revision
-- Returns:
- an ISVNDirEntry
- Throws:
SVNClientException
-
getSingleStatus
Returns the status of a single file in the path.- Parameters:
path
- File to gather status.- Returns:
- a Status
- Throws:
SVNClientException
-
getStatus
Returns the status of given resources- Parameters:
path
-- Returns:
- the status of given resources
- Throws:
SVNClientException
-
getStatus
Returns the status of path and its children. If descend is true, recurse fully, else do only immediate children. If getAll is set, retrieve all entries; otherwise, retrieve only "interesting" entries (local mods and/or out-of-date).- Parameters:
path
- File to gather status.descend
- get recursive status informationgetAll
- get status information for all files- Returns:
- a Status
- Throws:
SVNClientException
-
getStatus
ISVNStatus[] getStatus(File path, boolean descend, boolean getAll, boolean contactServer) throws SVNClientException Returns the status of path and its children. If descend is true, recurse fully, else do only immediate children. If getAll is set, retrieve all entries; otherwise, retrieve only "interesting" entries (local mods and/or out-of-date). Use the contactServer option to get server change information.- Parameters:
path
- File to gather status.descend
- get recursive status informationgetAll
- get status information for all filescontactServer
- contact server to get remote changes- Returns:
- a Status
- Throws:
SVNClientException
-
getStatus
ISVNStatus[] getStatus(File path, boolean descend, boolean getAll, boolean contactServer, boolean ignoreExternals) throws SVNClientException Returns the status of path and its children. If descend is true, recurse fully, else do only immediate children. If getAll is set, retrieve all entries; otherwise, retrieve only "interesting" entries (local mods and/or out-of-date). Use the contactServer option to get server change information.- Parameters:
path
- File to gather status.descend
- get recursive status informationgetAll
- get status information for all filescontactServer
- contact server to get remote changesignoreExternals
- if externals are ignored during status- Returns:
- a Status
- Throws:
SVNClientException
-
getStatus
ISVNStatus[] getStatus(File path, boolean descend, boolean getAll, boolean contactServer, boolean ignoreExternals, ISVNStatusCallback callback) throws SVNClientException Returns the status of path and its children. If descend is true, recurse fully, else do only immediate children. If getAll is set, retrieve all entries; otherwise, retrieve only "interesting" entries (local mods and/or out-of-date). Use the contactServer option to get server change information.- Parameters:
path
- File to gather status.descend
- get recursive status informationgetAll
- get status information for all filescontactServer
- contact server to get remote changesignoreExternals
- if externals are ignored during statuscallback
- callback to collect statuses- Returns:
- a Status
- Throws:
SVNClientException
-
getStatus
ISVNStatus[] getStatus(File path, boolean descend, boolean getAll, boolean contactServer, boolean ignoreExternals, boolean noIgnore, ISVNStatusCallback callback) throws SVNClientException Returns the status of path and its children. If descend is true, recurse fully, else do only immediate children. If getAll is set, retrieve all entries; otherwise, retrieve only "interesting" entries (local mods and/or out-of-date). Use the contactServer option to get server change information.- Parameters:
path
- File to gather status.descend
- get recursive status informationgetAll
- get status information for all filescontactServer
- contact server to get remote changesignoreExternals
- if externals are ignored during statusnoIgnore
- if true, ignored entries are includedcallback
- callback to collect statuses- Returns:
- a Status
- Throws:
SVNClientException
-
copy
copy and schedule for addition (with history)- Parameters:
srcPath
-destPath
-- Throws:
SVNClientException
-
copy
immediately commit a copy of WC to URL- Parameters:
srcPath
-destUrl
-message
-- Throws:
SVNClientException
-
copy
void copy(File[] srcPaths, SVNUrl destUrl, String message, boolean copyAsChild, boolean makeParents) throws SVNClientException immediately commit a copy of WC to URL- Parameters:
srcPaths
-destUrl
-message
-copyAsChild
-makeParents
-- Throws:
SVNClientException
-
copy
check out URL into WC, schedule for addition- Parameters:
srcUrl
-destPath
-revision
-- Throws:
SVNClientException
-
copy
void copy(SVNUrl srcUrl, File destPath, SVNRevision revision, boolean copyAsChild, boolean makeParents) throws SVNClientException check out URL into WC, schedule for addition- Parameters:
srcUrl
-destPath
-revision
-boolean
-boolean
-- Throws:
SVNClientException
-
copy
void copy(SVNUrl srcUrl, File destPath, SVNRevision revision, SVNRevision pegRevision, boolean copyAsChild, boolean makeParents) throws SVNClientException check out URL into WC, schedule for addition- Parameters:
srcUrl
-destPath
-revision
-pegRevision
-boolean
-boolean
-- Throws:
SVNClientException
-
copy
void copy(SVNUrl srcUrl, SVNUrl destUrl, String message, SVNRevision revision) throws SVNClientException complete server-side copy; used to branch & tag- Parameters:
srcUrl
-destUrl
-message
-revision
-- Throws:
SVNClientException
-
copy
void copy(SVNUrl srcUrl, SVNUrl destUrl, String message, SVNRevision revision, boolean makeParents) throws SVNClientException complete server-side copy with option to create intermediate folders; used to branch & tag- Parameters:
srcUrl
-destUrl
-message
-revision
-make
- parents- Throws:
SVNClientException
-
copy
void copy(SVNUrl[] srcUrls, SVNUrl destUrl, String message, SVNRevision revision, boolean copyAsChild, boolean makeParents) throws SVNClientException complete server-side copy with option to create intermediate folders; used to branch & tag- Parameters:
srcUrl
-destUrl
-message
-revision
-copyAsChild
-make
- parents- Throws:
SVNClientException
-
remove
item is deleted from the repository via an immediate commit.- Parameters:
url
-message
-- Throws:
SVNClientException
-
remove
the item is scheduled for deletion upon the next commit. Files, and directories that have not been committed, are immediately removed from the working copy. The command will not remove TARGETs that are, or contain, unversioned or modified items; use the force option to override this behaviour.- Parameters:
file
-force
-- Throws:
SVNClientException
-
doExport
void doExport(SVNUrl srcUrl, File destPath, SVNRevision revision, boolean force) throws SVNClientException Exports a clean directory tree from the repository specified by srcUrl, at revision revision- Parameters:
srcUrl
-destPath
-revision
-force
-- Throws:
SVNClientException
-
doExport
Exports a clean directory tree from the working copy specified by PATH1 into PATH2. all local changes will be preserved, but files not under revision control will not be copied.- Parameters:
srcPath
-destPath
-force
-- Throws:
SVNClientException
-
doImport
Import file or directory PATH into repository directory URL at head- Parameters:
path
-url
-message
-recurse
-- Throws:
SVNClientException
-
mkdir
Creates a directory directly in a repository- Parameters:
url
-message
-- Throws:
SVNClientException
-
mkdir
Creates a directory directly in a repository- Parameters:
url
-makeParents
-message
-- Throws:
SVNClientException
-
mkdir
creates a directory on disk and schedules it for addition.- Parameters:
file
-- Throws:
SVNClientException
-
move
Moves or renames a file.- Parameters:
srcPath
-destPath
-force
-- Throws:
SVNClientException
-
move
void move(SVNUrl srcUrl, SVNUrl destUrl, String message, SVNRevision revision) throws SVNClientException Moves or renames a file.- Parameters:
srcUrl
-destUrl
-message
-revision
-- Throws:
SVNClientException
-
update
Update a file or a directory- Parameters:
path
-revision
-recurse
-- Returns:
- Returns a long representing the revision. It returns a -1 if the revision number is invalid.
- Throws:
SVNClientException
-
update
long update(File path, SVNRevision revision, int depth, boolean setDepth, boolean ignoreExternals, boolean force) throws SVNClientException Update a file or a directory- Parameters:
path
-revision
-depth
-setDepth
-ignoreExternals
-force
-- Returns:
- Returns a long representing the revision. It returns a -1 if the revision number is invalid.
- Throws:
SVNClientException
-
update
long[] update(File[] path, SVNRevision revision, boolean recurse, boolean ignoreExternals) throws SVNClientException Updates the directories or files from repository- Parameters:
path
- array of target files.revision
- the revision number to update.recurse
- recursively update.ignoreExternals
- if externals are ignored during update- Returns:
- Returns an array of longs representing the revision. It returns a -1 if the revision number is invalid.
- Throws:
SVNClientException
- Since:
- 1.2
-
update
long[] update(File[] path, SVNRevision revision, int depth, boolean setDepth, boolean ignoreExternals, boolean force) throws SVNClientException Updates the directories or files from repository- Parameters:
path
- array of target files.revision
- the revision number to update.depth
- the depth to recursively update.setDepth
- change working copy to specified depthignoreExternals
- if externals are ignored during update.force
- allow unversioned paths that obstruct adds.- Returns:
- Returns an array of longs representing the revision. It returns a -1 if the revision number is invalid.
- Throws:
SVNClientException
-
revert
Restore pristine working copy file (undo all local edits)- Parameters:
path
-recurse
-- Throws:
SVNClientException
-
getLogMessages
ISVNLogMessage[] getLogMessages(SVNUrl url, SVNRevision revisionStart, SVNRevision revisionEnd) throws SVNClientException Get the log messages for a set of revision(s)- Parameters:
url
-revisionStart
-revisionEnd
-- Returns:
- The list of log messages.
- Throws:
SVNClientException
-
getLogMessages
ISVNLogMessage[] getLogMessages(SVNUrl url, SVNRevision revisionStart, SVNRevision revisionEnd, boolean fetchChangePath) throws SVNClientException Get the log messages for a set of revision(s)- Parameters:
url
-revisionStart
-revisionEnd
-fetchChangePath
- Whether or not to interogate the repository for the verbose log information containing the list of paths touched by the delta specified byrevisionStart
andrevisionEnd
. Setting this tofalse
results in a more performant and memory efficient operation.- Returns:
- The list of log messages.
- Throws:
SVNClientException
-
getLogMessages
ISVNLogMessage[] getLogMessages(SVNUrl url, String[] paths, SVNRevision revStart, SVNRevision revEnd, boolean stopOnCopy, boolean fetchChangePath) throws SVNClientException Get the log messages for a set paths and revision(s)- Parameters:
url
-paths
-revStart
-revEnd
-stopOnCopy
-fetchChangePath
-- Returns:
- The list of log messages.
- Throws:
SVNClientException
-
getLogMessages
ISVNLogMessage[] getLogMessages(File path, SVNRevision revisionStart, SVNRevision revisionEnd) throws SVNClientException Get the log messages for a set of revision(s)- Parameters:
path
-revisionStart
-revisionEnd
-- Returns:
- The list of log messages.
- Throws:
SVNClientException
-
getLogMessages
ISVNLogMessage[] getLogMessages(File path, SVNRevision revisionStart, SVNRevision revisionEnd, boolean fetchChangePath) throws SVNClientException Get the log messages for a set of revision(s)- Parameters:
path
-revisionStart
-revisionEnd
-fetchChangePath
- Whether or not to interogate the repository for the verbose log information containing the list of paths touched by the delta specified byrevisionStart
andrevisionEnd
. Setting this tofalse
results in a more performant and memory efficient operation.- Returns:
- The list of log messages.
- Throws:
SVNClientException
-
getLogMessages
ISVNLogMessage[] getLogMessages(File path, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath) throws SVNClientException Retrieve the log messages for an item- Parameters:
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- Returns:
- array of LogMessages
- Throws:
SVNClientException
-
getLogMessages
ISVNLogMessage[] getLogMessages(File path, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit) throws SVNClientException Retrieve the log messages for an item- Parameters:
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)- Returns:
- array of LogMessages
- Throws:
SVNClientException
-
getLogMessages
ISVNLogMessage[] getLogMessages(File path, SVNRevision pegRevision, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit, boolean includeMergedRevisions) throws SVNClientException Retrieve the log messages for an item- Parameters:
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- Returns:
- array of LogMessages
- Throws:
SVNClientException
-
getLogMessages
ISVNLogMessage[] getLogMessages(SVNUrl url, SVNRevision pegRevision, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit) throws SVNClientException Retrieve the log messages for an item- Parameters:
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)- Returns:
- array of LogMessages
- Throws:
SVNClientException
-
getLogMessages
ISVNLogMessage[] getLogMessages(SVNUrl url, SVNRevision pegRevision, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit, boolean includeMergedRevisions) throws SVNClientException Retrieve the log messages for an item- Parameters:
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- Returns:
- array of LogMessages
- Throws:
SVNClientException
-
getLogMessages
void getLogMessages(File path, SVNRevision pegRevision, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit, boolean includeMergedRevisions, String[] requestedProperties, ISVNLogMessageCallback callback) throws SVNClientException Retrieve the log messages for an item- Parameters:
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 mergedrequestedProperties
- the revision properties to return for each entrycallback
- callback class to receive log messages- Throws:
SVNClientException
-
getLogMessages
void getLogMessages(SVNUrl url, SVNRevision pegRevision, SVNRevision revisionStart, SVNRevision revisionEnd, boolean stopOnCopy, boolean fetchChangePath, long limit, boolean includeMergedRevisions, String[] requestedProperties, ISVNLogMessageCallback callback) throws SVNClientException Retrieve the log messages for an item- Parameters:
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 mergedrequestedProperties
- the revision properties to return for each entrycallback
- callback class to receive log messages- Throws:
SVNClientException
-
getContent
InputStream getContent(SVNUrl url, SVNRevision revision, SVNRevision pegRevision) throws SVNClientException get the content of a file- Parameters:
url
-revision
-peg
- revision- Returns:
- the input stream with a content of the file
- Throws:
SVNClientException
-
getContent
get the content of a file- Parameters:
url
-revision
-- Returns:
- the input stream with a content of the file
- Throws:
SVNClientException
-
getContent
get the content of a file- Parameters:
path
-revision
-- Returns:
- the input stream with a content of the file
- Throws:
SVNClientException
-
propertySet
void propertySet(File path, String propertyName, String propertyValue, boolean recurse) throws SVNClientException set a property- Parameters:
path
-propertyName
-propertyValue
-recurse
-- Throws:
SVNClientException
-
propertySet
void propertySet(SVNUrl url, SVNRevision.Number baseRev, String propertyName, String propertyValue, String message) throws SVNClientException set a property- Parameters:
url
-baseRev
-propertyName
-propertyValue
-recurse
-- Throws:
SVNClientException
-
propertySet
void propertySet(File path, String propertyName, File propertyFile, boolean recurse) throws SVNClientException, IOException set a property using the content of a file- Parameters:
path
-propertyName
-propertyFile
-recurse
-- Throws:
SVNClientException
IOException
-
propertyGet
get a property or null if property is not found- Parameters:
path
-propertyName
-- Returns:
- a property or null
- Throws:
SVNClientException
-
propertyGet
get a property or null if property is not found- Parameters:
url
-propertyName
-- Returns:
- a property or null
- Throws:
SVNClientException
-
propertyGet
ISVNProperty propertyGet(SVNUrl url, SVNRevision revision, SVNRevision peg, String propertyName) throws SVNClientException get a property or null if property is not found- Parameters:
url
-revision
-peg
-propertyName
-- Returns:
- a property or null
- Throws:
SVNClientException
-
propertyDel
delete a property- Parameters:
path
-propertyName
-recurse
-- Throws:
SVNClientException
-
setRevProperty
void setRevProperty(SVNUrl path, SVNRevision.Number revisionNo, String propName, String propertyData, boolean force) throws SVNClientException set the revision property for a given revision- Parameters:
path
-revisionNo
-propName
-propertyData
-force
-- Throws:
SVNClientException
-
getRevProperty
String getRevProperty(SVNUrl path, SVNRevision.Number revisionNo, String propName) throws SVNClientException get a revision property for a given revision- Parameters:
path
-revisionNo
-propName
-- Throws:
SVNClientException
-
getIgnoredPatterns
get the ignored patterns for the given directory if path is not a directory, returns null- Parameters:
path
-- Returns:
- list of ignored patterns
- Throws:
SVNClientException
-
addToIgnoredPatterns
add a pattern to svn:ignore property- Parameters:
path
-pattern
-- Throws:
SVNClientException
-
setIgnoredPatterns
set the ignored patterns for the given directory- Parameters:
path
-patterns
-- Throws:
SVNClientException
-
diff
void diff(File oldPath, SVNRevision oldPathRevision, File newPath, SVNRevision newPathRevision, File outFile, boolean recurse) throws SVNClientException display the differences between two paths.- Parameters:
oldPath
-oldPathRevision
-newPath
-newPathRevision
-outFile
-recurse
-- Throws:
SVNClientException
-
diff
void diff(File oldPath, SVNRevision oldPathRevision, File newPath, SVNRevision newPathRevision, File outFile, boolean recurse, boolean ignoreAncestry, boolean noDiffDeleted, boolean force) throws SVNClientException display the differences between two paths.- Parameters:
oldPath
-oldPathRevision
-newPath
-newPathRevision
-outFile
-recurse
-ignoreAncestry
-noDiffDeleted
-force
-- Throws:
SVNClientException
-
diff
display the differences between two paths.- Parameters:
path
-outFile
-recurse
-- Throws:
SVNClientException
-
diff
display the combined differences for an array of paths.- Parameters:
paths
-outFile
-recurse
-- Throws:
SVNClientException
-
createPatch
void createPatch(File[] paths, File relativeToPath, File outFile, boolean recurse) throws SVNClientException create a patch from local differences.- Parameters:
paths
-relativeToPath
- - create patch relative to this locationoutFile
-recurse
-- Throws:
SVNClientException
-
diff
void diff(SVNUrl oldUrl, SVNRevision oldUrlRevision, SVNUrl newUrl, SVNRevision newUrlRevision, File outFile, boolean recurse) throws SVNClientException display the differences between two urls.- Parameters:
oldUrl
-oldUrlRevision
-newUrl
-newUrlRevision
-outFile
-recurse
-- Throws:
SVNClientException
-
diff
void diff(SVNUrl oldUrl, SVNRevision oldUrlRevision, SVNUrl newUrl, SVNRevision newUrlRevision, File outFile, boolean recurse, boolean ignoreAncestry, boolean noDiffDeleted, boolean force) throws SVNClientException display the differences between two urls.- Parameters:
oldUrl
-oldUrlRevision
-newUrl
-newUrlRevision
-outFile
-recurse
-ignoreAncestry
-noDiffDeleted
-force
-- Throws:
SVNClientException
-
diff
void diff(SVNUrl target, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, File outFile, int depth, boolean ignoreAncestry, boolean noDiffDeleted, boolean force) throws SVNClientException Display the differences between two paths.- Parameters:
target
-pegRevision
-startRevision
-endRevision
-outFile
-depth
-ignoreAncestry
-noDiffDeleted
-force
-- Throws:
SVNClientException
-
diff
void diff(SVNUrl target, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, File outFile, boolean recurse) throws SVNClientException Display the differences between two paths.- Parameters:
target
-pegRevision
-startRevision
-endRevision
-outFile
-recurse
-- Throws:
SVNClientException
-
diff
void diff(SVNUrl url, SVNRevision oldUrlRevision, SVNRevision newUrlRevision, File outFile, boolean recurse) throws SVNClientException display the differences between two urls.- Parameters:
url
-oldUrlRevision
-newUrlRevision
-outFile
-recurse
-- Throws:
SVNClientException
-
diff
void diff(File path, SVNUrl url, SVNRevision urlRevision, File outFile, boolean recurse) throws SVNClientException display the differences between WC and url.- Parameters:
path
-url
-urlRevision
-outFile
-recurse
-- Throws:
SVNClientException
-
getKeywords
returns the keywords used for substitution for the given resource- Parameters:
path
-- Returns:
- the keywords used for substitution
- Throws:
SVNClientException
-
setKeywords
set the keywords substitution for the given resource- Parameters:
path
-keywords
-recurse
-- Throws:
SVNClientException
-
addKeywords
add some keyword to the keywords substitution list- Parameters:
path
-keywords
-- Returns:
- keywords valid after this method call
- Throws:
SVNClientException
-
removeKeywords
remove some keywords to the keywords substitution list- Parameters:
path
-keywords
-- Returns:
- keywords valid after this method call
- Throws:
SVNClientException
-
annotate
ISVNAnnotations annotate(SVNUrl url, SVNRevision revisionStart, SVNRevision revisionEnd) throws SVNClientException Output the content of specified url with revision and author information in-line.- Parameters:
url
-revisionStart
-revisionEnd
-- Returns:
- annotations for the given url
- Throws:
SVNClientException
-
annotate
ISVNAnnotations annotate(File file, SVNRevision revisionStart, SVNRevision revisionEnd) throws SVNClientException Output the content of specified file with revision and author information in-line.- Parameters:
file
-revisionStart
-revisionEnd
-- Returns:
- annotations for the given file
- Throws:
SVNClientException
-
annotate
ISVNAnnotations annotate(SVNUrl url, SVNRevision revisionStart, SVNRevision revisionEnd, SVNRevision pegRevision, boolean ignoreMimeType, boolean includeMergedRevisions) throws SVNClientException Output the content of specified url with revision and author information in-line.- Parameters:
url
-revisionStart
-revisionEnd
-pegRevision
-ignoreMimeType
-includeMergedRevisons
-- Returns:
- annotations for the given url
- Throws:
SVNClientException
-
annotate
ISVNAnnotations annotate(File file, SVNRevision revisionStart, SVNRevision revisionEnd, boolean ignoreMimeType, boolean includeMergedRevisions) throws SVNClientException Output the content of specified file with revision and author information in-line.- Parameters:
file
-revisionStart
-revisionEnd
-ignoreMimeType
-includeMergedRevisons
-- Returns:
- annotations for the given file
- Throws:
SVNClientException
-
annotate
ISVNAnnotations annotate(File file, SVNRevision revisionStart, SVNRevision revisionEnd, SVNRevision pegRevision, boolean ignoreMimeType, boolean includeMergedRevisions) throws SVNClientException Output the content of specified file with revision and author information in-line.- Parameters:
file
-revisionStart
-revisionEnd
-pegRevision
- ;ignoreMimeType
-includeMergedRevisons
-- Returns:
- annotations for the given file
- Throws:
SVNClientException
-
getPropertiesIncludingInherited
Get all the properties for the given file or dir, including inherited- Parameters:
path
-- Returns:
- the properties for the given file or dir, including inherited
- Throws:
SVNClientException
-
getPropertiesIncludingInherited
ISVNProperty[] getPropertiesIncludingInherited(File path, boolean includeEmptyProperties, boolean includeClosestOnly, List<String> filterProperties) throws SVNClientException Get all the properties for the given file or dir, including inherited- Parameters:
path
-includeEmptyProperties
-includeClosestOnly
-filterParameters
-- Returns:
- the properties for the given file or dir, including inherited
- Throws:
SVNClientException
-
getPropertiesIncludingInherited
Get all the properties for the given URL, including inherited- Parameters:
path
-- Returns:
- the properties for the given URL, including inherited
- Throws:
SVNClientException
-
getPropertiesIncludingInherited
ISVNProperty[] getPropertiesIncludingInherited(SVNUrl path, boolean includeEmptyProperties, boolean includeClosestOnly, List<String> filterProperties) throws SVNClientException Get all the properties for the given URL, including inherited- Parameters:
path
-includeEmptyProperties
-includeClosestOnly
-filterParameters
-- Returns:
- the properties for the given URL, including inherited
- Throws:
SVNClientException
-
getProperties
Get all the properties for the given file or dir- Parameters:
path
-- Returns:
- the properties for the given url
- Throws:
SVNClientException
-
getProperties
Get all the properties for the given file or dir- Parameters:
path
-descend
- get properties recursively- Returns:
- the properties for the given url
- Throws:
SVNClientException
-
getProperties
ISVNProperty[] getProperties(SVNUrl url, SVNRevision revision, SVNRevision peg, boolean recurse) throws SVNClientException Get all the properties for the given url- Parameters:
url
-revision
-peg
-recurse
-- Returns:
- information about an URL.
- Throws:
SVNClientException
-
getProperties
ISVNProperty[] getProperties(SVNUrl url, SVNRevision revision, SVNRevision peg) throws SVNClientException Get all the properties for the given url- Parameters:
url
-revision
-peg
-- Returns:
- information about an URL.
- Throws:
SVNClientException
-
getProperties
Get all the properties for the given url- Parameters:
url
-- Returns:
- the properties for the given url
- Throws:
SVNClientException
-
getRevProperties
Get all the revision properties for the given url at a revision- Parameters:
url
-revision
-- Returns:
- information about an URL.
- Throws:
SVNClientException
-
resolved
Remove 'conflicted' state on working copy files or directories- Parameters:
path
-- Throws:
SVNClientException
-
resolve
Remove 'conflicted' state on working copy files or directories- Parameters:
path
-result
- - choose resolve option -ISVNConflictResolver.Choice
- Throws:
SVNClientException
-
createRepository
Create a new, empty repository at path- Parameters:
path
-repositoryType
- eitherREPOSITORY_FSTYPE_BDB
orREPOSITORY_FSTYPE_FSFS
or null (will use svnadmin default)- Throws:
SVNClientException
-
cancelOperation
Cancel the current operation- Throws:
SVNClientException
-
getInfoFromWorkingCopy
Get information about a file or directory from working copy. Uses info() call which does NOT contact the repository- Parameters:
file
-- Returns:
- information about a file or directory from working copy.
- Throws:
SVNClientException
-
getInfo
Get information about a file or directory. Uses info2() call which contacts the repository- Parameters:
file
-- Returns:
- information about a file or directory.
- Throws:
SVNClientException
-
getInfo
Get information about a file or directory. Uses info2() call which contacts the repository- Parameters:
file
-descend
- get recursive information- Returns:
- information about a file or directory.
- Throws:
SVNClientException
-
getInfo
Get information about an URL. Uses info2() call which contacts the repository- Parameters:
url
-- Returns:
- information about an URL.
- Throws:
SVNClientException
-
getInfo
Get information about an URL. Uses info2() call which contacts the repository- Parameters:
url
-revision
-peg
-- Returns:
- information about an URL.
- Throws:
SVNClientException
-
switchToUrl
void switchToUrl(File path, SVNUrl url, SVNRevision revision, boolean recurse) throws SVNClientException Update the working copy to mirror a new URL within the repository. This behaviour is similar to 'svn update', and is the way to move a working copy to a branch or tag within the same repository.- Parameters:
url
-path
-revision
-recurse
-- Throws:
SVNClientException
-
switchToUrl
void switchToUrl(File path, SVNUrl url, SVNRevision revision, int depth, boolean setDepth, boolean ignoreExternals, boolean force) throws SVNClientException Update the working copy to mirror a new URL within the repository. This behaviour is similar to 'svn update', and is the way to move a working copy to a branch or tag within the same repository.- Parameters:
url
-path
-revision
-depth
-setDepth
-ignoreExternals
-force
-- Throws:
SVNClientException
-
switchToUrl
void switchToUrl(File path, SVNUrl url, SVNRevision revision, SVNRevision pegRevision, int depth, boolean setDepth, boolean ignoreExternals, boolean force) throws SVNClientException Update the working copy to mirror a new URL within the repository. This behaviour is similar to 'svn update', and is the way to move a working copy to a branch or tag within the same repository.- Parameters:
url
-path
-revision
-pegRevision
-depth
-setDepth
-ignoreExternals
-force
-- Throws:
SVNClientException
-
switchToUrl
void switchToUrl(File path, SVNUrl url, SVNRevision revision, SVNRevision pegRevision, int depth, boolean setDepth, boolean ignoreExternals, boolean force, boolean ignoreAncestry) throws SVNClientException Update the working copy to mirror a new URL within the repository. This behaviour is similar to 'svn update', and is the way to move a working copy to a branch or tag within the same repository.- Parameters:
url
-path
-revision
-pegRevision
-depth
-setDepth
-ignoreExternals
-force
-ignoreAncestry
-- Throws:
SVNClientException
-
setConfigDirectory
Set the configuration directory.- Parameters:
dir
-- Throws:
SVNClientException
-
cleanup
Perform a clanup on the working copy. This will remove any stale transactions- Parameters:
dir
-- Throws:
SVNClientException
-
upgrade
Recursively upgrade a working copy to a new metadata storage format.- Parameters:
dir
-- Throws:
SVNClientException
-
merge
void merge(SVNUrl path1, SVNRevision revision1, SVNUrl path2, SVNRevision revision2, File localPath, boolean force, boolean recurse) throws SVNClientException Merge changes from two paths into a new local path.- Parameters:
path1
- first path or urlrevision1
- first revisionpath2
- second path or urlrevision2
- second revisionlocalPath
- target local pathforce
- overwrite local changesrecurse
- traverse into subdirectories- Throws:
SVNClientException
-
merge
void merge(SVNUrl path1, SVNRevision revision1, SVNUrl path2, SVNRevision revision2, File localPath, boolean force, boolean recurse, boolean dryRun) throws SVNClientException Merge changes from two paths into a new local path.- Parameters:
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- Throws:
SVNClientException
-
merge
void merge(SVNUrl path1, SVNRevision revision1, SVNUrl path2, SVNRevision revision2, File localPath, boolean force, boolean recurse, boolean dryRun, boolean ignoreAncestry) throws SVNClientException Merge changes from two paths into a new local path.- Parameters:
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 copyignoreAncestry
- ignore ancestry when calculating merges- Throws:
SVNClientException
-
merge
void merge(SVNUrl path1, SVNRevision revision1, SVNUrl path2, SVNRevision revision2, File localPath, boolean force, int depth, boolean dryRun, boolean ignoreAncestry, boolean recordOnly) throws SVNClientException Merge changes from two paths into a new local path.- Parameters:
path1
- first path or urlrevision1
- first revisionpath2
- second path or urlrevision2
- second revisionlocalPath
- target local pathforce
- overwrite local changesint
- depthdryRun
- do not update working copyignoreAncestry
- ignore ancestry when calculating mergesrecordOnly
- just records mergeinfo, does not perform merge- Throws:
SVNClientException
-
mergeReintegrate
void mergeReintegrate(SVNUrl path, SVNRevision pegRevision, File localPath, boolean force, boolean dryRun) throws SVNClientException Perform a reintegration merge of path into localPath. localPath must be a single-revision, infinite depth, pristine, unswitched working copy -- in other words, it must reflect a single revision tree, the "target". The mergeinfo on path must reflect that all of the target has been merged into it. Then this behaves like a merge from the target's URL to the localPath. The depth of the merge is always infinity.- Parameters:
path
- path or urlpegRevision
- revision to interpret pathlocalPath
- target local pathforce
- THIS IS NOT CURRENTLY USEDdryRun
- do not update working copy- Throws:
SVNClientException
-
lock
Lock a working copy item- Parameters:
paths
- path of the items to lockcomment
-force
- break an existing lock- Throws:
SVNClientException
-
unlock
Unlock a working copy item- Parameters:
paths
- path of the items to unlockforce
- break an existing lock- Throws:
SVNClientException
-
lock
Lock a working copy item- Parameters:
paths
- path of the items to lockcomment
-force
- break an existing lock- Throws:
SVNClientException
-
unlock
Unlock a working copy item- Parameters:
paths
- path of the items to unlockforce
- break an existing lock- Throws:
SVNClientException
-
statusReturnsRemoteInfo
boolean statusReturnsRemoteInfo()Indicates whether a status call that contacts the server includes the remote info in the status object- Returns:
- true when the client adapter implementation delivers remote info within status
-
canCommitAcrossWC
boolean canCommitAcrossWC()Indicates whether the commitAcrossWC method is supported in the adapter- Returns:
- true when the client adapter implementation supports commitAcrossWC
-
getAdminDirectoryName
String getAdminDirectoryName()Returns the name of the Subversion administrative working copy directory. Typically will be ".svn".- Returns:
- the name of the Subversion administrative wc dir
-
isAdminDirectory
Returns whether the passed folder name is a Subversion administrative working copy directory. Will always return true if ".svn" is passed. Otherwise, will be based on the Subversion runtime- Parameters:
name
-- Returns:
- true whether the folder is a Subversion administrative dir
-
relocate
Rewrite the url's in the working copy- Parameters:
from
- old urlto
- new urlpath
- working copy pathrecurse
- recurse into subdirectories- Throws:
SVNClientException
-
merge
void merge(SVNUrl url, SVNRevision pegRevision, SVNRevisionRange[] revisions, File localPath, boolean force, int depth, boolean ignoreAncestry, boolean dryRun, boolean recordOnly) throws SVNClientException Merge set of revisions into a new local path.- Parameters:
url
- urlpegRevision
- revision to interpret pathrevisions
- revisions to merge (must be in the form N-1:M)localPath
- target local pathforce
- overwrite local changesdepth
- how deep to traverse into subdirectoriesignoreAncestry
- ignore if files are not relateddryRun
- do not change anythingrecordOnly
- just records mergeinfo, does not perform merge- Throws:
SVNClientException
-
getMergeInfo
Get merge info forpath
atrevision
.- Parameters:
path
- Local Path.revision
- SVNRevision at which to get the merge info forpath
.- Throws:
SVNClientException
-
getMergeInfo
Get merge info forurl
atrevision
.- Parameters:
url
- URL.revision
- SVNRevision at which to get the merge info forpath
.- Throws:
SVNClientException
-
getMergeinfoLog
ISVNLogMessage[] getMergeinfoLog(int kind, File path, SVNRevision pegRevision, SVNUrl mergeSourceUrl, SVNRevision srcPegRevision, boolean discoverChangedPaths) throws SVNClientException Retrieve either merged or eligible-to-be-merged revisions.- Parameters:
kind
- kind of revisions to receivepath
- target of mergepegRevision
- peg rev for pathmergeSourceUrl
- the source of the mergesrcPegRevision
- peg rev for mergeSourceUrldiscoverChangedPaths
- return paths of changed items- Returns:
- array of log messages
- Throws:
SVNClientException
-
getMergeinfoLog
ISVNLogMessage[] getMergeinfoLog(int kind, SVNUrl url, SVNRevision pegRevision, SVNUrl mergeSourceUrl, SVNRevision srcPegRevision, boolean discoverChangedPaths) throws SVNClientException Retrieve either merged or eligible-to-be-merged revisions.- Parameters:
kind
- kind of revisions to receiveurl
- target of mergepegRevision
- peg rev for pathmergeSourceUrl
- the source of the mergesrcPegRevision
- peg rev for mergeSourceUrldiscoverChangedPaths
- return paths of changed items- Returns:
- array of log messages
- Throws:
SVNClientException
-
diffSummarize
SVNDiffSummary[] diffSummarize(SVNUrl target1, SVNRevision revision1, SVNUrl target2, SVNRevision revision2, int depth, boolean ignoreAncestry) throws SVNClientException Produce a diff summary which lists the items changed between path and revision pairs.- Parameters:
target1
- URL.revision1
- Revision oftarget1
.target2
- URL.revision2
- Revision oftarget2
.depth
- how deep to recurse.ignoreAncestry
- Whether to ignore unrelated files during comparison. False positives may potentially be reported if this parameterfalse
, since a file might have been modified between two revisions, but still have the same contents.- Returns:
- the list of differences
- Throws:
SVNClientException
-
diffSummarize
SVNDiffSummary[] diffSummarize(SVNUrl target, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, int depth, boolean ignoreAncestry) throws SVNClientException Produce a diff summary which lists the items changed between path and revision pairs.- Parameters:
target
- URL.pegRevision
- Revision at which to interprettarget
. IfRevisionKind#unspecified
ornull
, behave identically todiffSummarize(String, Revision, String, Revision, boolean, boolean, DiffSummaryReceiver)
, usingpath
for both of that method's targets.startRevision
- Beginning of range for comparsion oftarget
.endRevision
- End of range for comparsion oftarget
.depth
- how deep to recurse.ignoreAncestry
- Whether to ignore unrelated files during comparison. False positives may potentially be reported if this parameterfalse
, since a file might have been modified between two revisions, but still have the same contents.- Returns:
- the list of differences
- Throws:
SVNClientException
-
diffSummarize
SVNDiffSummary[] diffSummarize(File path, SVNUrl toUrl, SVNRevision toRevision, boolean recurse) throws SVNClientException - Throws:
SVNClientException
-
suggestMergeSources
Return an ordered list of suggested merge source URLs.- Parameters:
path
- The merge target path for which to suggest sources.- Returns:
- The list of URLs, empty if there are no suggestions.
- Throws:
SVNClientException
- If an error occurs.
-
suggestMergeSources
Return an ordered list of suggested merge source URLs.- Parameters:
url
- The merge target path for which to suggest sources.peg
- The peg revision for the URL- Returns:
- The list of URLs, empty if there are no suggestions.
- Throws:
SVNClientException
- If an error occurs.
-
dispose
void dispose()release the native peer (should not depend on finalize)
-