Class SVNClient
- All Implemented Interfaces:
ISVNClient
public class SVNClient extends Object implements ISVNClient
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SVNClient.ClientLogLevel
enum for the constants of the logging levels. -
Field Summary
Fields Modifier and Type Field Description protected long
cppAddr
slot for the adress of the native peer. -
Constructor Summary
Constructors Constructor Description SVNClient()
Standard empty constructor, builds just the native peer. -
Method Summary
Modifier and Type Method Description void
add(String path, Depth depth, boolean force, boolean noIgnores, boolean addParents)
Adds a file to the repository.void
add(String path, Depth depth, boolean force, boolean noIgnores, boolean noAutoProps, boolean addParents)
Adds a file to the repository.void
addToChangelist(Set<String> paths, String changelist, Depth depth, Collection<String> changelists)
Add paths to a changelistvoid
blame(String path, Revision pegRevision, Revision revisionStart, Revision revisionEnd, boolean ignoreMimeType, boolean includeMergedRevisions, BlameCallback callback)
Deprecated.void
blame(String path, Revision pegRevision, Revision revisionStart, Revision revisionEnd, boolean ignoreMimeType, boolean includeMergedRevisions, BlameCallback callback, DiffOptions options)
Deprecated.void
blame(String path, Revision pegRevision, Revision revisionStart, Revision revisionEnd, boolean ignoreMimeType, boolean includeMergedRevisions, DiffOptions options, BlameRangeCallback rangeCallback, BlameLineCallback lineCallback)
Retrieve the content together with the author, the revision and the date of the last change of each line.void
cancelOperation()
cancel the active operationlong
checkout(String moduleName, String destPath, Revision revision, Revision pegRevision, Depth depth, boolean ignoreExternals, boolean allowUnverObstructions)
Executes a revision checkout.void
cleanup(String path)
Recursively cleans up a local directory, finishing any incomplete operations, removing lockfiles, etc.void
cleanup(String path, boolean breakLocks, boolean fixRecordedTimestamps, boolean clearDavCache, boolean removeUnusedPristines, boolean includeExternals)
Recursively cleans up a local directory, finishing any incomplete operations, removing lockfiles, etc.void
commit(Set<String> paths, Depth depth, boolean noUnlock, boolean keepChangelist, Collection<String> changelists, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback)
Commits changes to the repository.void
copy(List<CopySource> sources, String destPath, boolean copyAsChild, boolean makeParents, boolean ignoreExternals, boolean metadataOnly, boolean pinExternals, Map<String,List<ExternalItem>> externalsToPin, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback)
Copy versioned paths with the history preserved.void
copy(List<CopySource> sources, String destPath, boolean copyAsChild, boolean makeParents, boolean ignoreExternals, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback)
Copy versioned paths with the history preserved.void
diff(String target1, Revision revision1, String target2, Revision revision2, String relativeToDir, OutputStream stream, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds, boolean ignoreProps, boolean propsOnly)
Display the differences between two pathsvoid
diff(String target1, Revision revision1, String target2, Revision revision2, String relativeToDir, OutputStream stream, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds, boolean ignoreProps, boolean propsOnly, DiffOptions options)
Display the differences between two pathsvoid
diff(String target1, Revision revision1, String target2, Revision revision2, String relativeToDir, String outFileName, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds)
Display the differences between two pathsvoid
diff(String target1, Revision revision1, String target2, Revision revision2, String relativeToDir, String outFileName, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds, boolean ignoreProps, boolean propsOnly, DiffOptions options)
Display the differences between two pathsvoid
diff(String target, Revision pegRevision, Revision startRevision, Revision endRevision, String relativeToDir, OutputStream stream, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds, boolean ignoreProps, boolean propsOnly)
Display the differences between two paths.void
diff(String target, Revision pegRevision, Revision startRevision, Revision endRevision, String relativeToDir, OutputStream stream, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds, boolean ignoreProps, boolean propsOnly, DiffOptions options)
Display the differences between two paths.void
diff(String target, Revision pegRevision, Revision startRevision, Revision endRevision, String relativeToDir, String outFileName, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds)
Display the differences between two paths.void
diff(String target, Revision pegRevision, Revision startRevision, Revision endRevision, String relativeToDir, String outFileName, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds, boolean ignoreProps, boolean propsOnly, DiffOptions options)
Display the differences between two paths.void
diffSummarize(String target1, Revision revision1, String target2, Revision revision2, Depth depth, Collection<String> changelists, boolean ignoreAncestry, DiffSummaryCallback receiver)
Produce a diff summary which lists the items changed between path and revision pairs.void
diffSummarize(String target, Revision pegRevision, Revision startRevision, Revision endRevision, Depth depth, Collection<String> changelists, boolean ignoreAncestry, DiffSummaryCallback receiver)
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)long
doExport(String srcPath, String destPath, Revision revision, Revision pegRevision, boolean force, boolean ignoreExternals, boolean ignorKeywords, Depth depth, String nativeEOL)
Exports the contents of either a subversion repository into a 'clean' directory (meaning a directory with no administrative directories).long
doExport(String srcPath, String destPath, Revision revision, Revision pegRevision, boolean force, boolean ignoreExternals, Depth depth, String nativeEOL)
Exports the contents of either a subversion repository into a 'clean' directory (meaning a directory with no administrative directories).void
doImport(String path, String url, Depth depth, boolean noIgnore, boolean noAutoProps, boolean ignoreUnknownNodeTypes, Map<String,String> revpropTable, ImportFilterCallback importFilterCallback, CommitMessageCallback handler, CommitCallback commitCallback)
Import a file or directory into a repository directory at head.void
doImport(String path, String url, Depth depth, boolean noIgnore, boolean ignoreUnknownNodeTypes, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback)
Import a file or directory into a repository directory at head.long
doSwitch(String path, String url, Revision revision, Revision pegRevision, Depth depth, boolean depthIsSticky, boolean ignoreExternals, boolean allowUnverObstructions, boolean ignoreAncestry)
Update local copy to mirror a new url.static void
enableLogging(SVNClient.ClientLogLevel logLevel, String logFilePath)
Enable logging in the JNI-codebyte[]
fileContent(String path, Revision revision, Revision pegRevision)
Retrieve the content of a file Always expands keywords and never returns properties.void
finalize()
release the native peer (should use dispose instead)String
getAdminDirectoryName()
void
getChangelists(String rootPath, Collection<String> changelists, Depth depth, ChangelistCallback callback)
Recursively get the paths which belong to a changelistString
getConfigDirectory()
Get the configuration directoryConfigEvent
getConfigEventHandler()
Return a reference to the installed configuration event handler.String
getLastPath()
Deprecated.Mergeinfo
getMergeinfo(String path, Revision pegRevision)
Get mergeinfo forpath
atpegRevision
.void
getMergeinfoLog(Mergeinfo.LogKind kind, String pathOrUrl, Revision pegRevision, String mergeSourceUrl, Revision srcPegRevision, boolean discoverChangedPaths, Depth depth, Set<String> revProps, LogMessageCallback callback)
Retrieve either merged or eligible-to-be-merged revisions.void
getMergeinfoLog(Mergeinfo.LogKind kind, String pathOrUrl, Revision pegRevision, String mergeSourceUrl, Revision srcPegRevision, Revision srcStartRevision, Revision srcEndRevision, boolean discoverChangedPaths, Depth depth, Set<String> revProps, LogMessageCallback callback)
Retrieve either merged or eligible-to-be-merged revisions.RuntimeVersion
getRuntimeVersion()
Version
getVersion()
VersionExtended
getVersionExtended(boolean verbose)
String
getVersionInfo(String path, String trailUrl, boolean lastChanged)
Produce a compact "version number" for a working copyvoid
info(String pathOrUrl, Revision revision, Revision pegRevision, Depth depth, boolean fetchExcluded, boolean fetchActualOnly, boolean includeExternals, Collection<String> changelists, InfoCallback callback)
Invokecallback
to return informationpathOrUrl
inrevision
.void
info2(String pathOrUrl, Revision revision, Revision pegRevision, Depth depth, Collection<String> changelists, InfoCallback callback)
Retrieve information about repository or working copy items.boolean
isAdminDirectory(String name)
void
list(String url, Revision revision, Revision pegRevision, List<String> patterns, Depth depth, int direntFields, boolean fetchLocks, boolean includeExternals, ListItemCallback callback)
Lists the directory entries of a url on the server.void
list(String url, Revision revision, Revision pegRevision, Depth depth, int direntFields, boolean fetchLocks, ListCallback callback)
Deprecated.void
lock(Set<String> paths, String comment, boolean force)
Lock a working copy itemvoid
logMessages(String path, Revision pegRevision, List<RevisionRange> revisionRanges, boolean stopOnCopy, boolean discoverPath, boolean includeMergedRevisions, Set<String> revProps, boolean allRevProps, long limit, LogMessageCallback callback)
Retrieve the log messages for an item.void
logMessages(String path, Revision pegRevision, List<RevisionRange> ranges, boolean stopOnCopy, boolean discoverPath, boolean includeMergedRevisions, Set<String> revProps, long limit, LogMessageCallback callback)
Deprecated.void
merge(String path1, Revision revision1, String path2, Revision revision2, String localPath, boolean force, Depth depth, boolean ignoreAncestry, boolean dryRun, boolean recordOnly)
Merge changes from two paths into a new local path.void
merge(String path1, Revision revision1, String path2, Revision revision2, String localPath, boolean force, Depth depth, boolean ignoreMergeinfo, boolean diffIgnoreAncestry, boolean dryRun, boolean recordOnly)
Merge changes from two paths into a new local path.void
merge(String path1, Revision revision1, String path2, Revision revision2, String localPath, boolean force, Depth depth, boolean ignoreMergeinfo, boolean diffIgnoreAncestry, boolean dryRun, boolean allowMixedRev, boolean recordOnly)
Merge changes from two paths into a new local path.void
merge(String path, Revision pegRevision, List<RevisionRange> revisions, String localPath, boolean force, Depth depth, boolean ignoreAncestry, boolean dryRun, boolean recordOnly)
Merge set of revisions into a new local path.void
merge(String path, Revision pegRevision, List<RevisionRange> revisions, String localPath, boolean force, Depth depth, boolean ignoreMergeinfo, boolean diffIgnoreAncestry, boolean dryRun, boolean recordOnly)
Merge set of revisions into a new local path.void
merge(String path, Revision pegRevision, List<RevisionRange> revisions, String localPath, boolean force, Depth depth, boolean ignoreMergeinfo, boolean diffIgnoreAncestry, boolean dryRun, boolean allowMixedRev, boolean recordOnly)
Merge set of revisions into a new local path.void
mergeReintegrate(String path, Revision pegRevision, String localPath, boolean dryRun)
Deprecated.void
mkdir(Set<String> paths, boolean makeParents, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback)
Creates a directory directly in a repository or creates a directory on disk and schedules it for addition.void
move(Set<String> srcPaths, String destPath, boolean force, boolean moveAsChild, boolean makeParents, boolean metadataOnly, boolean allowMixRev, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback)
Move or rename versioned paths.void
move(Set<String> srcPaths, String destPath, boolean force, boolean moveAsChild, boolean makeParents, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback)
Deprecated.void
notification2(ClientNotifyCallback notify)
Sets the notification callback used to send processing information back to the calling program.ISVNRemote
openRemoteSession(String pathOrUrl)
Open a persistent session to a repository.ISVNRemote
openRemoteSession(String pathOrUrl, int retryAttempts)
Open a persistent session to a repository.void
password(String password)
Sets the password used for authentication.void
patch(String patchPath, String targetPath, boolean dryRun, int stripCount, boolean reverse, boolean ignoreWhitespace, boolean removeTempfiles, PatchCallback callback)
Apply a unidiff patch.void
properties(String path, Revision revision, Revision pegRevision, Depth depth, Collection<String> changelists, InheritedProplistCallback callback)
Retrieves the properties of an item, including inherited properties.void
properties(String path, Revision revision, Revision pegRevision, Depth depth, Collection<String> changelists, ProplistCallback callback)
Retrieves the properties of an itembyte[]
propertyGet(String path, String name, Revision revision, Revision pegRevision)
byte[]
propertyGet(String path, String name, Revision revision, Revision pegRevision, Collection<String> changelists)
Retrieve one property of one itemvoid
propertySetLocal(Set<String> paths, String name, byte[] value, Depth depth, Collection<String> changelists, boolean force)
Sets one property of an item with a String valuevoid
propertySetRemote(String path, long baseRev, String name, byte[] value, CommitMessageCallback handler, boolean force, Map<String,String> revpropTable, CommitCallback callback)
Sets one property of an item with a String valuevoid
relocate(String from, String to, String path, boolean ignoreExternals)
Rewrite the url's in the working copyvoid
remove(Set<String> paths, boolean force, boolean keepLocal, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback)
Sets a file for deletion.void
removeFromChangelists(Set<String> paths, Depth depth, Collection<String> changelists)
Remove paths from a changelistvoid
resolve(String path, Depth depth, ConflictResult.Choice conflictResult)
Resolves the conflicted state on a WC path (or tree).void
revert(String path, Depth depth, Collection<String> changelists)
Reverts a file to a pristine state.void
revert(Set<String> paths, Depth depth, Collection<String> changelists)
Reverts set of files or directories to a pristine state.void
revert(Set<String> paths, Depth depth, Collection<String> changelists, boolean clearChangelists, boolean metadataOnly)
Reverts set of files or directories to a pristine state.Map<String,byte[]>
revProperties(String path, Revision rev)
Retrieve all revsision properties of one itembyte[]
revProperty(String path, String name, Revision rev)
Retrieve one revsision property of one itemvoid
setConfigDirectory(String configDir)
Set directory for the configuration information, taking the usual steps to ensure that Subversion's config file templates exist in the specified location..void
setConfigEventHandler(ConfigEvent configHandler)
Set an event handler that will be called every time the configuration is loaded by this client object.void
setConflictResolver(ConflictResolverCallback resolver)
Set the conflict resolution callback.void
setProgressCallback(ProgressCallback progress)
Set the progress callback.void
setPrompt(AuthnCallback prompt)
Register callback interface to supply username and password on demand.void
setPrompt(UserPasswordCallback prompt)
Register callback interface to supply username and password on demand.void
setRevProperty(String path, String name, Revision rev, String value, String originalValue, boolean force)
set one revsision property of one itemvoid
setTunnelAgent(TunnelAgent tunnelAgent)
Set callbacks for ra_svn tunnel handling.void
status(String path, Depth depth, boolean onServer, boolean onDisk, boolean getAll, boolean noIgnore, boolean ignoreExternals, boolean depthAsSticky, Collection<String> changelists, StatusCallback callback)
Return the status of the working copy and maybe repository.void
status(String path, Depth depth, boolean onServer, boolean getAll, boolean noIgnore, boolean ignoreExternals, Collection<String> changelists, StatusCallback callback)
Deprecated.Map<String,byte[]>
streamFileContent(String path, Revision revision, Revision pegRevision, boolean expandKeywords, boolean returnProps, OutputStream stream)
Write the file's content to the specified output stream.void
streamFileContent(String path, Revision revision, Revision pegRevision, OutputStream stream)
Write the file's content to the specified output stream.Set<String>
suggestMergeSources(String path, Revision pegRevision)
Return an ordered list of suggested merge source URLs.void
unlock(Set<String> paths, boolean force)
Unlock a working copy itemlong[]
update(Set<String> paths, Revision revision, Depth depth, boolean depthIsSticky, boolean makeParents, boolean ignoreExternals, boolean allowUnverObstructions)
Updates the directories or files from repositoryvoid
upgrade(String path)
Recursively upgrade a working copy to a new metadata storage format.void
username(String username)
Sets the username used for authentication.void
vacuum(String wcPath, boolean removeUnversionedItems, boolean removeIgnoredItems, boolean fixRecordedTimestamps, boolean removeUnusedPristines, boolean includeExternals)
Recursively vacuum a working copy, removing unnecessary data.static String
version()
Returns version information of subversion and the javahl bindingstatic int
versionMajor()
Returns the major version of the javahl binding.static int
versionMicro()
Returns the micro (patch) version of the javahl binding.static int
versionMinor()
Returns the minor version of the javahl binding.
-
Field Details
-
cppAddr
protected long cppAddrslot for the adress of the native peer. The JNI code is the only user of this member
-
-
Constructor Details
-
SVNClient
public SVNClient()Standard empty constructor, builds just the native peer.
-
-
Method Details
-
dispose
public void dispose()release the native peer (should not depend on finalize)- Specified by:
dispose
in interfaceISVNClient
-
finalize
public void finalize()release the native peer (should use dispose instead) -
getVersion
- Specified by:
getVersion
in interfaceISVNClient
- Returns:
- Version information about the underlying native libraries.
-
getRuntimeVersion
- Specified by:
getRuntimeVersion
in interfaceISVNClient
- Returns:
- Runtime version information about the loaded libsvn_client.
-
getVersionExtended
- Specified by:
getVersionExtended
in interfaceISVNClient
- Returns:
- Extended version information about the underlying native libraries and operating system.
-
getAdminDirectoryName
- Specified by:
getAdminDirectoryName
in interfaceISVNClient
- Returns:
- The name of the working copy's administrative
directory, which is usually
.svn
. - See Also:
- Instructions on changing this as a work-around for the behavior of ASP.Net on Windows.
-
isAdminDirectory
- Specified by:
isAdminDirectory
in interfaceISVNClient
- Parameters:
name
- The name of the directory to compare.- Returns:
- Whether
name
is that of a working copy administrative directory.
-
getLastPath
Deprecated. -
status
public void status(String path, Depth depth, boolean onServer, boolean onDisk, boolean getAll, boolean noIgnore, boolean ignoreExternals, boolean depthAsSticky, Collection<String> changelists, StatusCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Return the status of the working copy and maybe repository.- Specified by:
status
in interfaceISVNClient
- Parameters:
path
- Path to explore.depth
- How deep to recurse into subdirectories.onServer
- Request status information from server.onDisk
- Check the working copy for local modifications. A value offalse
only has effect whenonServer
istrue
.getAll
- get status for uninteresting (unchanged) files.noIgnore
- get status for normaly ignored files and directories.ignoreExternals
- if externals are ignored during statusdepthAsSticky
- When set, interpretdepth
as the ambient depth of the working copy.changelists
- changelists to filter by- Throws:
ClientException
-
status
@Deprecated public void status(String path, Depth depth, boolean onServer, boolean getAll, boolean noIgnore, boolean ignoreExternals, Collection<String> changelists, StatusCallback callback) throws ClientExceptionDeprecated.Description copied from interface:ISVNClient
Return information about the status of the working copy and maybe repository.Behaves like the 1.9 version with
onDisk = true
anddepthAsSticky = false
.- Specified by:
status
in interfaceISVNClient
- Throws:
ClientException
-
list
public void list(String url, Revision revision, Revision pegRevision, List<String> patterns, Depth depth, int direntFields, boolean fetchLocks, boolean includeExternals, ListItemCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Lists the directory entries of a url on the server.- Specified by:
list
in interfaceISVNClient
- Parameters:
url
- the url to listrevision
- the revision to listpegRevision
- the revision to interpret urlpatterns
- optional glob patterns to filter the resultdepth
- the depth to recurse into subdirectoriesdirentFields
- the fields to retrievefetchLocks
- whether to fetch lock informationincludeExternals
- whether to list external itemscallback
- the callback to receive the directory entries- Throws:
ClientException
-
list
@Deprecated public void list(String url, Revision revision, Revision pegRevision, Depth depth, int direntFields, boolean fetchLocks, ListCallback callback) throws ClientExceptionDeprecated.Description copied from interface:ISVNClient
Lists the directory entries of a url on the server.Behaves like the 1.10 version with
patterns = null
andincludeExternals = false
- Specified by:
list
in interfaceISVNClient
- Throws:
ClientException
-
username
Description copied from interface:ISVNClient
Sets the username used for authentication.- Specified by:
username
in interfaceISVNClient
- Parameters:
username
- The username, ignored if the empty string. Set to the empty string to clear it.- See Also:
ISVNClient.password(String)
-
password
Description copied from interface:ISVNClient
Sets the password used for authentication.- Specified by:
password
in interfaceISVNClient
- Parameters:
password
- The password, ignored if the empty string. Set to the empty string to clear it.- See Also:
ISVNClient.username(String)
-
setPrompt
Description copied from interface:ISVNClient
Register callback interface to supply username and password on demand. This callback can also be used to provide theequivalent of the--no-auth-cache
and--non-interactive
arguments accepted by the command-line client.- Specified by:
setPrompt
in interfaceISVNClient
- Parameters:
prompt
- the callback interface
-
setPrompt
Description copied from interface:ISVNClient
Register callback interface to supply username and password on demand. This callback can also be used to provide theequivalent of the--no-auth-cache
and--non-interactive
arguments accepted by the command-line client.- Specified by:
setPrompt
in interfaceISVNClient
- Parameters:
prompt
- the callback interface
-
setTunnelAgent
Description copied from interface:ISVNClient
Set callbacks for ra_svn tunnel handling.- Specified by:
setTunnelAgent
in interfaceISVNClient
-
logMessages
@Deprecated public void logMessages(String path, Revision pegRevision, List<RevisionRange> ranges, boolean stopOnCopy, boolean discoverPath, boolean includeMergedRevisions, Set<String> revProps, long limit, LogMessageCallback callback) throws ClientExceptionDeprecated.Description copied from interface:ISVNClient
Retrieve the log messages for an item.Behaves like the 1.10 version with
allRevProps = false
- Specified by:
logMessages
in interfaceISVNClient
- Throws:
ClientException
-
logMessages
public void logMessages(String path, Revision pegRevision, List<RevisionRange> revisionRanges, boolean stopOnCopy, boolean discoverPath, boolean includeMergedRevisions, Set<String> revProps, boolean allRevProps, long limit, LogMessageCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Retrieve the log messages for an item.- Specified by:
logMessages
in interfaceISVNClient
- Parameters:
path
- path or url to get the log message for.pegRevision
- revision to interpret pathrevisionRanges
- an array of revision ranges to showstopOnCopy
- do not continue on copy operationsdiscoverPath
- returns the paths of the changed items in the returned objectsincludeMergedRevisions
- include log messages for revisions which were merged.revProps
- the revprops to retrieveallRevProps
- iftrue
, ignore therevProps
parameter and retrieve all revision propertieslimit
- limit the number of log messages (if 0 or less no limit)callback
- the object to receive the log messages- Throws:
ClientException
-
checkout
public long checkout(String moduleName, String destPath, Revision revision, Revision pegRevision, Depth depth, boolean ignoreExternals, boolean allowUnverObstructions) throws ClientExceptionDescription copied from interface:ISVNClient
Executes a revision checkout.- Specified by:
checkout
in interfaceISVNClient
- Parameters:
moduleName
- name of the module to checkout.destPath
- destination directory for checkout.revision
- the revision to checkout.pegRevision
- the peg revision to interpret the pathdepth
- how deep to checkout files recursively.ignoreExternals
- if externals are ignored during checkoutallowUnverObstructions
- allow unversioned paths that obstruct adds- Throws:
ClientException
-
notification2
Description copied from interface:ISVNClient
Sets the notification callback used to send processing information back to the calling program.- Specified by:
notification2
in interfaceISVNClient
- Parameters:
notify
- listener that the SVN library should call on many file operations.
-
setConflictResolver
Description copied from interface:ISVNClient
Set the conflict resolution callback.- Specified by:
setConflictResolver
in interfaceISVNClient
- Parameters:
resolver
- The conflict resolution callback.
-
setProgressCallback
Description copied from interface:ISVNClient
Set the progress callback.- Specified by:
setProgressCallback
in interfaceISVNClient
- Parameters:
progress
- The progress callback.
-
remove
public void remove(Set<String> paths, boolean force, boolean keepLocal, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Sets a file for deletion.- Specified by:
remove
in interfaceISVNClient
- Parameters:
paths
- path or url to be deletedforce
- delete even when there are local modifications.keepLocal
- only remove the paths from the repository.revpropTable
- A string-to-string mapping of revision properties to values which will be set if this operation results in a commit.handler
- the commit message callback- Throws:
ClientException
-
revert
public void revert(Set<String> paths, Depth depth, Collection<String> changelists, boolean clearChangelists, boolean metadataOnly) throws ClientExceptionDescription copied from interface:ISVNClient
Reverts set of files or directories to a pristine state.- Specified by:
revert
in interfaceISVNClient
depth
- the depth to recurse into subdirectorieschangelists
- changelists to filter byclearChangelists
- If set, will clear changelist association from the reverted paths.metadataOnly
- Revert just the metadata (including conflict data) and not the working files/dirs- Throws:
ClientException
-
revert
public void revert(Set<String> paths, Depth depth, Collection<String> changelists) throws ClientExceptionDescription copied from interface:ISVNClient
Reverts set of files or directories to a pristine state.Behaves like the 1.9 version with
clearChangelists
set tofalse
;- Specified by:
revert
in interfaceISVNClient
- Throws:
ClientException
-
revert
public void revert(String path, Depth depth, Collection<String> changelists) throws ClientExceptionDescription copied from interface:ISVNClient
Reverts a file to a pristine state.- Specified by:
revert
in interfaceISVNClient
- Parameters:
path
- path of the file.depth
- the depth to recurse into subdirectorieschangelists
- changelists to filter by- Throws:
ClientException
-
add
public void add(String path, Depth depth, boolean force, boolean noIgnores, boolean noAutoProps, boolean addParents) throws ClientExceptionDescription copied from interface:ISVNClient
Adds a file to the repository.- Specified by:
add
in interfaceISVNClient
- Parameters:
path
- path to be added.depth
- the depth to recurse into subdirectoriesforce
- if adding a directory and recurse true and path is a directory, all not already managed files are added.noIgnores
- if false, don't add files or directories matching ignore patternsnoAutoProps
- if true, ignore any auto-props configurationaddParents
- add any intermediate parents to the working copy- Throws:
ClientException
-
add
public void add(String path, Depth depth, boolean force, boolean noIgnores, boolean addParents) throws ClientExceptionDescription copied from interface:ISVNClient
Adds a file to the repository.Note: Behaves like the 1.8 version with
noAutoProps
set tofalse
.- Specified by:
add
in interfaceISVNClient
- Parameters:
path
- path to be added.depth
- the depth to recurse into subdirectoriesforce
- if adding a directory and recurse true and path is a directory, all not already managed files are added.noIgnores
- if false, don't add files or directories matching ignore patternsaddParents
- add any intermediate parents to the working copy- Throws:
ClientException
-
update
public long[] update(Set<String> paths, Revision revision, Depth depth, boolean depthIsSticky, boolean makeParents, boolean ignoreExternals, boolean allowUnverObstructions) throws ClientExceptionDescription copied from interface:ISVNClient
Updates the directories or files from repository- Specified by:
update
in interfaceISVNClient
- Parameters:
paths
- array of target files.revision
- the revision number to update. Revision.HEAD will update to the latest revision.depth
- the depth to recursively update.depthIsSticky
- if set, and depth is notDepth.unknown
, then also set the ambient depth value to depth.ignoreExternals
- if externals are ignored during updateallowUnverObstructions
- allow unversioned paths that obstruct adds- Throws:
ClientException
-
commit
public void commit(Set<String> paths, Depth depth, boolean noUnlock, boolean keepChangelist, Collection<String> changelists, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Commits changes to the repository.- Specified by:
commit
in interfaceISVNClient
- Parameters:
paths
- files to commit.depth
- how deep to recurse in subdirectoriesnoUnlock
- do remove any lockskeepChangelist
- keep changelist associations after the commit.changelists
- if non-null, filter paths using changelistsrevpropTable
- A string-to-string mapping of revision properties to values which will be set if this operation results in a commit.handler
- the commit message callback- Throws:
ClientException
-
copy
public void copy(List<CopySource> sources, String destPath, boolean copyAsChild, boolean makeParents, boolean ignoreExternals, boolean metadataOnly, boolean pinExternals, Map<String,List<ExternalItem>> externalsToPin, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Copy versioned paths with the history preserved.- Specified by:
copy
in interfaceISVNClient
- Parameters:
sources
- A list ofCopySource
objects.destPath
- Destination path or URL.copyAsChild
- Whether to copysrcPaths
as children ofdestPath
.makeParents
- Whether to create intermediate parentsignoreExternals
- Whether or not to process external definitions as part of this operation.metadataOnly
- Copy just the metadata and not the working files/dirspinExternals
- Whether or not to pin external definitions as part of this operation.externalsToPin
- The set of externals to pin. Keys are either local absolute paths (when the source of the copy is the working copy) or URLs within the repository (when the source is the repository) where ansvn:externals
property is defined. Values are lists of parsedExternalItem
objects from each external definitions. IfpinExternals
istrue
, only the externals in this set will be pinned; if this parameter isnull
, all externals will be pinned. IfpinExternals
isfalse
, this parameter will be ignored.revpropTable
- A string-to-string mapping of revision properties to values which will be set if this operation results in a commit.handler
- the commit message callback, may benull
ifdestPath
is not a URL- Throws:
ClientException
- If the copy operation fails.
-
copy
public void copy(List<CopySource> sources, String destPath, boolean copyAsChild, boolean makeParents, boolean ignoreExternals, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Copy versioned paths with the history preserved.Behaves like the 1.9 version with
pinExternals
set tofalse
andexternalsToPin
set tonull
andmetadataOnly
set tofalse
.- Specified by:
copy
in interfaceISVNClient
- Throws:
ClientException
-
move
public void move(Set<String> srcPaths, String destPath, boolean force, boolean moveAsChild, boolean makeParents, boolean metadataOnly, boolean allowMixRev, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Move or rename versioned paths.- Specified by:
move
in interfaceISVNClient
- Parameters:
srcPaths
- Source paths or URLs.destPath
- Destination path or URL.force
- Whether to perform the move even if local modifications exist.moveAsChild
- Whether to movesrcPaths
as children ofdestPath
.makeParents
- Whether to create intermediate parents.metadataOnly
- Move just the metadata and not the working files/dirsallowMixRev
- If true use copy and delete without move tracking when a srcPath is mixed-revision, if false return an error when a srcPath is mixed-revision.revpropTable
- A string-to-string mapping of revision properties to values which will be set if this operation results in a commit.handler
- the commit message callback, may benull
ifdestPath
is not a URL- Throws:
ClientException
- If the move operation fails.
-
move
@Deprecated public void move(Set<String> srcPaths, String destPath, boolean force, boolean moveAsChild, boolean makeParents, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientExceptionDeprecated.- Specified by:
move
in interfaceISVNClient
- Throws:
ClientException
-
mkdir
public void mkdir(Set<String> paths, boolean makeParents, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Creates a directory directly in a repository or creates a directory on disk and schedules it for addition.- Specified by:
mkdir
in interfaceISVNClient
- Parameters:
paths
- directories to be createdmakeParents
- Whether to create intermediate parentsrevpropTable
- A string-to-string mapping of revision properties to values which will be set if this operation results in a commit.handler
- the handler to use if paths contains URLs- Throws:
ClientException
-
cleanup
public void cleanup(String path, boolean breakLocks, boolean fixRecordedTimestamps, boolean clearDavCache, boolean removeUnusedPristines, boolean includeExternals) throws ClientExceptionDescription copied from interface:ISVNClient
Recursively cleans up a local directory, finishing any incomplete operations, removing lockfiles, etc.- Specified by:
cleanup
in interfaceISVNClient
- Parameters:
path
- a local directory.breakLocks
- ### FIXME: Missing docstring in svn_client.hclearDavCache
- ### FIXME: Missing docstring in svn_client.hremoveUnusedPristines
- ### FIXME: Missing docstring in svn_client.hincludeExternals
- Recurse into externals working copies and clean them up, too.- Throws:
ClientException
-
cleanup
Description copied from interface:ISVNClient
Recursively cleans up a local directory, finishing any incomplete operations, removing lockfiles, etc.Behaves like the 1.9 version with
includeExternals
set tofalse
, and the other flags to
true
.- Specified by:
cleanup
in interfaceISVNClient
- Parameters:
path
- a local directory.- Throws:
ClientException
-
resolve
public void resolve(String path, Depth depth, ConflictResult.Choice conflictResult) throws SubversionExceptionDescription copied from interface:ISVNClient
Resolves the conflicted state on a WC path (or tree).- Specified by:
resolve
in interfaceISVNClient
- Parameters:
path
- The path to resolve.depth
- How deep to recurse into child paths.conflictResult
- Which version to choose in the event of a conflict.- Throws:
SubversionException
- If an error occurs.
-
doExport
public long doExport(String srcPath, String destPath, Revision revision, Revision pegRevision, boolean force, boolean ignoreExternals, boolean ignorKeywords, Depth depth, String nativeEOL) throws ClientExceptionDescription copied from interface:ISVNClient
Exports the contents of either a subversion repository into a 'clean' directory (meaning a directory with no administrative directories).- Specified by:
doExport
in interfaceISVNClient
- Parameters:
srcPath
- the url of the repository path to be exporteddestPath
- a destination path that must not already exist.revision
- the revsion to be exportedpegRevision
- the revision to interpret srcPathforce
- set if it is ok to overwrite local filesignoreExternals
- ignore external during exportdepth
- how deep to recurse in subdirectoriesnativeEOL
- which EOL characters to use during export- Throws:
ClientException
-
doExport
public long doExport(String srcPath, String destPath, Revision revision, Revision pegRevision, boolean force, boolean ignoreExternals, Depth depth, String nativeEOL) throws ClientExceptionDescription copied from interface:ISVNClient
Exports the contents of either a subversion repository into a 'clean' directory (meaning a directory with no administrative directories).Note: Behaves like the 1.9 version with ignoreKeywords set to false.
- Specified by:
doExport
in interfaceISVNClient
- Parameters:
srcPath
- the url of the repository path to be exporteddestPath
- a destination path that must not already exist.revision
- the revsion to be exportedpegRevision
- the revision to interpret srcPathforce
- set if it is ok to overwrite local filesignoreExternals
- ignore external during exportdepth
- how deep to recurse in subdirectoriesnativeEOL
- which EOL characters to use during export- Throws:
ClientException
-
doSwitch
public long doSwitch(String path, String url, Revision revision, Revision pegRevision, Depth depth, boolean depthIsSticky, boolean ignoreExternals, boolean allowUnverObstructions, boolean ignoreAncestry) throws ClientExceptionDescription copied from interface:ISVNClient
Update local copy to mirror a new url.- Specified by:
doSwitch
in interfaceISVNClient
- Parameters:
path
- the working copy pathurl
- the new url for the working copyrevision
- the new base revision of working copypegRevision
- the revision at which to interpretpath
depth
- how deep to traverse into subdirectoriesdepthIsSticky
- if set, and depth is notDepth.unknown
, then also set the ambient depth value to depth.ignoreExternals
- whether to process externals definitionsallowUnverObstructions
- allow unversioned paths that obstruct addsignoreAncestry
- whether to skip common ancestry sanity check betweenpath
andurl
- Throws:
ClientException
-
doImport
public void doImport(String path, String url, Depth depth, boolean noIgnore, boolean noAutoProps, boolean ignoreUnknownNodeTypes, Map<String,String> revpropTable, ImportFilterCallback importFilterCallback, CommitMessageCallback handler, CommitCallback commitCallback) throws ClientExceptionDescription copied from interface:ISVNClient
Import a file or directory into a repository directory at head.- Specified by:
doImport
in interfaceISVNClient
- Parameters:
path
- the local pathurl
- the target urldepth
- depth to traverse into subdirectoriesnoIgnore
- whether to add files matched by ignore patternsnoAutoProps
- if true, ignore any auto-props configurationignoreUnknownNodeTypes
- whether to ignore files which the node type is not konwn, just as pipesrevpropTable
- A string-to-string mapping of revision properties to values which will be set if this operation results in a commit.handler
- the commit message callbackcommitCallback
- the commit status callback- Throws:
ClientException
-
doImport
public void doImport(String path, String url, Depth depth, boolean noIgnore, boolean ignoreUnknownNodeTypes, Map<String,String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Import a file or directory into a repository directory at head.Note: Behaves like the 1.8 version with noAutoProps set to false and without the filtering option.
- Specified by:
doImport
in interfaceISVNClient
- Parameters:
path
- the local pathurl
- the target urldepth
- depth to traverse into subdirectoriesnoIgnore
- whether to add files matched by ignore patternsignoreUnknownNodeTypes
- whether to ignore files which the node type is not konwn, just as pipesrevpropTable
- A string-to-string mapping of revision properties to values which will be set if this operation results in a commit.handler
- the commit message callbackcallback
- the commit status callback- Throws:
ClientException
-
suggestMergeSources
public Set<String> suggestMergeSources(String path, Revision pegRevision) throws SubversionExceptionDescription copied from interface:ISVNClient
Return an ordered list of suggested merge source URLs.- Specified by:
suggestMergeSources
in interfaceISVNClient
- Parameters:
path
- The merge target path for which to suggest sources.pegRevision
- Peg revision used to interpret path.- Returns:
- The list of URLs, empty if there are no suggestions.
- Throws:
ClientException
- If an error occurs.SubversionException
-
merge
public void merge(String path1, Revision revision1, String path2, Revision revision2, String localPath, boolean force, Depth depth, boolean ignoreMergeinfo, boolean diffIgnoreAncestry, boolean dryRun, boolean allowMixedRev, boolean recordOnly) throws ClientExceptionDescription copied from interface:ISVNClient
Merge changes from two paths into a new local path.- Specified by:
merge
in interfaceISVNClient
- Parameters:
path1
- first path or urlrevision1
- first revisionpath2
- second path or urlrevision2
- second revisionlocalPath
- target local pathforce
- overwrite local changesdepth
- how deep to traverse into subdirectoriesignoreMergeinfo
- ignore merge history, treat sources as unrelateddiffIgnoreAncestry
- always treat source files as relateddryRun
- do not change anythingallowMixedRev
- allow merging into a mixed-revision working copyrecordOnly
- record mergeinfo but do not run merge- Throws:
ClientException
-
merge
public void merge(String path1, Revision revision1, String path2, Revision revision2, String localPath, boolean force, Depth depth, boolean ignoreMergeinfo, boolean diffIgnoreAncestry, boolean dryRun, boolean recordOnly) throws ClientExceptionDescription copied from interface:ISVNClient
Merge changes from two paths into a new local path.Note: Behaves like the 1.9 version with allowMixedRev always set to
true
.- Specified by:
merge
in interfaceISVNClient
- Parameters:
path1
- first path or urlrevision1
- first revisionpath2
- second path or urlrevision2
- second revisionlocalPath
- target local pathforce
- overwrite local changesdepth
- how deep to traverse into subdirectoriesignoreMergeinfo
- ignore merge history, treat sources as unrelateddiffIgnoreAncestry
- always treat source files as relateddryRun
- do not change anythingrecordOnly
- record mergeinfo but do not run merge- Throws:
ClientException
-
merge
public void merge(String path1, Revision revision1, String path2, Revision revision2, String localPath, boolean force, Depth depth, boolean ignoreAncestry, boolean dryRun, boolean recordOnly) throws ClientExceptionDescription copied from interface:ISVNClient
Merge changes from two paths into a new local path.Note: Behaves like the 1.8 version where ignoreAncestry maps to both ignoreMergeinfo and diffIgnoreAncestry
- Specified by:
merge
in interfaceISVNClient
- Parameters:
path1
- first path or urlrevision1
- first revisionpath2
- second path or urlrevision2
- second revisionlocalPath
- target local pathforce
- overwrite local changesdepth
- how deep to traverse into subdirectoriesignoreAncestry
- ignore if files are not relateddryRun
- do not change anythingrecordOnly
- record mergeinfo but do not run merge- Throws:
ClientException
-
merge
public void merge(String path, Revision pegRevision, List<RevisionRange> revisions, String localPath, boolean force, Depth depth, boolean ignoreMergeinfo, boolean diffIgnoreAncestry, boolean dryRun, boolean allowMixedRev, boolean recordOnly) throws ClientExceptionDescription copied from interface:ISVNClient
Merge set of revisions into a new local path.- Specified by:
merge
in interfaceISVNClient
- Parameters:
path
- path or urlpegRevision
- revision to interpret pathrevisions
- revisions to merge; may be null, indicating that the optimal range should be determined automatciallylocalPath
- target local pathforce
- overwrite local changesdepth
- how deep to traverse into subdirectoriesignoreMergeinfo
- ignore merge history, treat sources as unrelateddiffIgnoreAncestry
- always treat source files as relateddryRun
- do not change anythingallowMixedRev
- allow merging into a mixed-revision working copyrecordOnly
- record mergeinfo but do not run merge- Throws:
ClientException
-
merge
public void merge(String path, Revision pegRevision, List<RevisionRange> revisions, String localPath, boolean force, Depth depth, boolean ignoreMergeinfo, boolean diffIgnoreAncestry, boolean dryRun, boolean recordOnly) throws ClientExceptionDescription copied from interface:ISVNClient
Merge set of revisions into a new local path.Note: Behaves like the 1.9 version with allowMixedRev always set to
true
.- Specified by:
merge
in interfaceISVNClient
- Parameters:
path
- path or urlpegRevision
- revision to interpret pathrevisions
- revisions to merge; may be null, indicating that the optimal range should be determined automatciallylocalPath
- target local pathforce
- overwrite local changesdepth
- how deep to traverse into subdirectoriesignoreMergeinfo
- ignore merge history, treat sources as unrelateddiffIgnoreAncestry
- always treat source files as relateddryRun
- do not change anythingrecordOnly
- record mergeinfo but do not run merge- Throws:
ClientException
-
merge
public void merge(String path, Revision pegRevision, List<RevisionRange> revisions, String localPath, boolean force, Depth depth, boolean ignoreAncestry, boolean dryRun, boolean recordOnly) throws ClientExceptionDescription copied from interface:ISVNClient
Merge set of revisions into a new local path.Note: Behaves like the 1.8 version where ignoreAncestry maps to both ignoreMergeinfo and diffIgnoreAncestry.
- Specified by:
merge
in interfaceISVNClient
- Parameters:
path
- path or urlpegRevision
- revision to interpret pathrevisions
- revisions to merge; may be null, indicating that the optimal range should be determined automatcially (new in 1.8)localPath
- target local pathforce
- overwrite local changesdepth
- how deep to traverse into subdirectoriesignoreAncestry
- ignore if files are not relateddryRun
- do not change anythingrecordOnly
- record mergeinfo but do not run merge- Throws:
ClientException
-
mergeReintegrate
@Deprecated public void mergeReintegrate(String path, Revision pegRevision, String localPath, boolean dryRun) throws ClientExceptionDeprecated.Description copied from interface:ISVNClient
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.- Specified by:
mergeReintegrate
in interfaceISVNClient
- Parameters:
path
- path or urlpegRevision
- revision to interpret pathlocalPath
- target local pathdryRun
- do not change anything- Throws:
ClientException
-
getMergeinfo
Description copied from interface:ISVNClient
Get mergeinfo forpath
atpegRevision
.- Specified by:
getMergeinfo
in interfaceISVNClient
- Parameters:
path
- WC path or URL.pegRevision
- peg revision at which to get the merge info forpath
.- Returns:
- The merge history of
path
. - Throws:
SubversionException
-
getMergeinfoLog
public void getMergeinfoLog(Mergeinfo.LogKind kind, String pathOrUrl, Revision pegRevision, String mergeSourceUrl, Revision srcPegRevision, Revision srcStartRevision, Revision srcEndRevision, boolean discoverChangedPaths, Depth depth, Set<String> revProps, LogMessageCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Retrieve either merged or eligible-to-be-merged revisions.- Specified by:
getMergeinfoLog
in interfaceISVNClient
- Parameters:
kind
- kind of revisions to receivepathOrUrl
- target of mergepegRevision
- peg rev for pathOrUrlmergeSourceUrl
- the source of the mergesrcPegRevision
- peg rev for mergeSourceUrlsrcStartRevision
- lower bound of the source revision rangesrcEndRevision
- upper bound of the source revision rangediscoverChangedPaths
- return paths of changed itemsdepth
- the depth to recurse torevProps
- the revprops to retrievecallback
- the object to receive the log messages- Throws:
ClientException
-
getMergeinfoLog
public void getMergeinfoLog(Mergeinfo.LogKind kind, String pathOrUrl, Revision pegRevision, String mergeSourceUrl, Revision srcPegRevision, boolean discoverChangedPaths, Depth depth, Set<String> revProps, LogMessageCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Retrieve either merged or eligible-to-be-merged revisions.Note: Behaves like the 1.8 version, with unspecified revision range.
- Specified by:
getMergeinfoLog
in interfaceISVNClient
- Parameters:
kind
- kind of revisions to receivepathOrUrl
- target of mergepegRevision
- peg rev for pathOrUrlmergeSourceUrl
- the source of the mergesrcPegRevision
- peg rev for mergeSourceUrldiscoverChangedPaths
- return paths of changed itemsdepth
- the depth to recurse torevProps
- the revprops to retrievecallback
- the object to receive the log messages- Throws:
ClientException
-
diff
public void diff(String target1, Revision revision1, String target2, Revision revision2, String relativeToDir, String outFileName, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds) throws ClientExceptionDescription copied from interface:ISVNClient
Display the differences between two paths- Specified by:
diff
in interfaceISVNClient
- Parameters:
target1
- first path or urlrevision1
- first revisiontarget2
- second path or urlrevision2
- second revisionrelativeToDir
- index path is relative to this pathoutFileName
- file name where difference are writtendepth
- how deep to traverse into subdirectoriesignoreAncestry
- ignore if files are not relatednoDiffDeleted
- no output on deleted filesforce
- diff even on binary filescopiesAsAdds
- if set, copied files will be shown in their entirety, not as diffs from their sources- Throws:
ClientException
-
diff
public void diff(String target1, Revision revision1, String target2, Revision revision2, String relativeToDir, OutputStream stream, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds, boolean ignoreProps, boolean propsOnly) throws ClientExceptionDescription copied from interface:ISVNClient
Display the differences between two paths- Specified by:
diff
in interfaceISVNClient
- Parameters:
target1
- first path or urlrevision1
- first revisiontarget2
- second path or urlrevision2
- second revisionrelativeToDir
- index path is relative to this pathstream
- the stream to which difference are writtendepth
- how deep to traverse into subdirectoriesignoreAncestry
- ignore if files are not relatednoDiffDeleted
- no output on deleted filesforce
- diff even on binary filescopiesAsAdds
- if set, copied files will be shown in their entirety, not as diffs from their sourcesignoreProps
- don't show property diffspropsOnly
- show property changes only- Throws:
ClientException
-
diff
public void diff(String target1, Revision revision1, String target2, Revision revision2, String relativeToDir, String outFileName, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds, boolean ignoreProps, boolean propsOnly, DiffOptions options) throws ClientExceptionDescription copied from interface:ISVNClient
Display the differences between two paths- Specified by:
diff
in interfaceISVNClient
- Parameters:
target1
- first path or urlrevision1
- first revisiontarget2
- second path or urlrevision2
- second revisionrelativeToDir
- index path is relative to this pathoutFileName
- file name where difference are writtendepth
- how deep to traverse into subdirectoriesignoreAncestry
- ignore if files are not relatednoDiffDeleted
- no output on deleted filesforce
- diff even on binary filescopiesAsAdds
- if set, copied files will be shown in their entirety, not as diffs from their sourcesignoreProps
- don't show property diffspropsOnly
- show property changes onlyoptions
- additional options for controlling the output- Throws:
ClientException
-
diff
public void diff(String target1, Revision revision1, String target2, Revision revision2, String relativeToDir, OutputStream stream, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds, boolean ignoreProps, boolean propsOnly, DiffOptions options) throws ClientExceptionDescription copied from interface:ISVNClient
Display the differences between two paths- Specified by:
diff
in interfaceISVNClient
- Parameters:
target1
- first path or urlrevision1
- first revisiontarget2
- second path or urlrevision2
- second revisionrelativeToDir
- index path is relative to this pathstream
- the stream to which difference are writtendepth
- how deep to traverse into subdirectoriesignoreAncestry
- ignore if files are not relatednoDiffDeleted
- no output on deleted filesforce
- diff even on binary filescopiesAsAdds
- if set, copied files will be shown in their entirety, not as diffs from their sourcesignoreProps
- don't show property diffspropsOnly
- show property changes onlyoptions
- additional options for controlling the output- Throws:
ClientException
-
diff
public void diff(String target, Revision pegRevision, Revision startRevision, Revision endRevision, String relativeToDir, String outFileName, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds) throws ClientExceptionDescription copied from interface:ISVNClient
Display the differences between two paths.- Specified by:
diff
in interfaceISVNClient
- Parameters:
target
- path or urlpegRevision
- revision tointerpret targetstartRevision
- first Revision to compareendRevision
- second Revision to comparerelativeToDir
- index path is relative to this pathoutFileName
- file name where difference are writtendepth
- how deep to traverse into subdirectorieschangelists
- if non-null, filter paths using changelistsignoreAncestry
- ignore if files are not relatednoDiffDeleted
- no output on deleted filesforce
- diff even on binary filescopiesAsAdds
- if set, copied files will be shown in their entirety, not as diffs from their sources- Throws:
ClientException
-
diff
public void diff(String target, Revision pegRevision, Revision startRevision, Revision endRevision, String relativeToDir, OutputStream stream, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds, boolean ignoreProps, boolean propsOnly) throws ClientExceptionDescription copied from interface:ISVNClient
Display the differences between two paths.- Specified by:
diff
in interfaceISVNClient
- Parameters:
target
- path or urlpegRevision
- revision tointerpret targetstartRevision
- first Revision to compareendRevision
- second Revision to comparerelativeToDir
- index path is relative to this pathstream
- the stream to which difference are writtendepth
- how deep to traverse into subdirectorieschangelists
- if non-null, filter paths using changelistsignoreAncestry
- ignore if files are not relatednoDiffDeleted
- no output on deleted filesforce
- diff even on binary filescopiesAsAdds
- if set, copied files will be shown in their entirety, not as diffs from their sourcesignoreProps
- don't show property diffspropsOnly
- show property changes only- Throws:
ClientException
-
diff
public void diff(String target, Revision pegRevision, Revision startRevision, Revision endRevision, String relativeToDir, String outFileName, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds, boolean ignoreProps, boolean propsOnly, DiffOptions options) throws ClientExceptionDescription copied from interface:ISVNClient
Display the differences between two paths.- Specified by:
diff
in interfaceISVNClient
- Parameters:
target
- path or urlpegRevision
- revision tointerpret targetstartRevision
- first Revision to compareendRevision
- second Revision to comparerelativeToDir
- index path is relative to this pathoutFileName
- file name where difference are writtendepth
- how deep to traverse into subdirectorieschangelists
- if non-null, filter paths using changelistsignoreAncestry
- ignore if files are not relatednoDiffDeleted
- no output on deleted filesforce
- diff even on binary filescopiesAsAdds
- if set, copied files will be shown in their entirety, not as diffs from their sourcesignoreProps
- don't show property diffspropsOnly
- show property changes onlyoptions
- additional options for controlling the output- Throws:
ClientException
-
diff
public void diff(String target, Revision pegRevision, Revision startRevision, Revision endRevision, String relativeToDir, OutputStream stream, Depth depth, Collection<String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds, boolean ignoreProps, boolean propsOnly, DiffOptions options) throws ClientExceptionDescription copied from interface:ISVNClient
Display the differences between two paths.- Specified by:
diff
in interfaceISVNClient
- Parameters:
target
- path or urlpegRevision
- revision tointerpret targetstartRevision
- first Revision to compareendRevision
- second Revision to comparerelativeToDir
- index path is relative to this pathstream
- the stream to which difference are writtendepth
- how deep to traverse into subdirectorieschangelists
- if non-null, filter paths using changelistsignoreAncestry
- ignore if files are not relatednoDiffDeleted
- no output on deleted filesforce
- diff even on binary filescopiesAsAdds
- if set, copied files will be shown in their entirety, not as diffs from their sourcesignoreProps
- don't show property diffspropsOnly
- show property changes onlyoptions
- additional options for controlling the output- Throws:
ClientException
-
diffSummarize
public void diffSummarize(String target1, Revision revision1, String target2, Revision revision2, Depth depth, Collection<String> changelists, boolean ignoreAncestry, DiffSummaryCallback receiver) throws ClientExceptionDescription copied from interface:ISVNClient
Produce a diff summary which lists the items changed between path and revision pairs.- Specified by:
diffSummarize
in interfaceISVNClient
- Parameters:
target1
- Path or URL.revision1
- Revision oftarget1
.target2
- Path or URL.revision2
- Revision oftarget2
.depth
- how deep to recurse.changelists
- if non-null, filter paths using changelistsignoreAncestry
- 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.receiver
- As each is difference is found, this callback is invoked with a description of the difference.- Throws:
ClientException
-
diffSummarize
public void diffSummarize(String target, Revision pegRevision, Revision startRevision, Revision endRevision, Depth depth, Collection<String> changelists, boolean ignoreAncestry, DiffSummaryCallback receiver) throws ClientExceptionDescription copied from interface:ISVNClient
Produce a diff summary which lists the items changed between path and revision pairs.- Specified by:
diffSummarize
in interfaceISVNClient
- Parameters:
target
- Path or URL.pegRevision
- Revision at which to interprettarget
. IfRevision.UNSPECIFIED
ornull
, behave identically toISVNClient.diffSummarize(String, Revision, String, Revision, Depth, Collection, boolean, DiffSummaryCallback)
, usingpath
for both of that method's targets.startRevision
- Beginning of range for comparison oftarget
.endRevision
- End of range for comparison oftarget
.depth
- how deep to recurse.changelists
- if non-null, filter paths using changelistsignoreAncestry
- 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.receiver
- As each is difference is found, this callback is invoked with a description of the difference.- Throws:
ClientException
-
properties
public void properties(String path, Revision revision, Revision pegRevision, Depth depth, Collection<String> changelists, ProplistCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Retrieves the properties of an item- Specified by:
properties
in interfaceISVNClient
- Parameters:
path
- the path of the itemrevision
- the revision of the itempegRevision
- the revision to interpret pathdepth
- the depth to recurse into subdirectorieschangelists
- changelists to filter bycallback
- the callback to use to return the properties- Throws:
ClientException
-
properties
public void properties(String path, Revision revision, Revision pegRevision, Depth depth, Collection<String> changelists, InheritedProplistCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Retrieves the properties of an item, including inherited properties.- Specified by:
properties
in interfaceISVNClient
- Parameters:
path
- the path of the itemrevision
- the revision of the itempegRevision
- the revision to interpret pathdepth
- the depth to recurse into subdirectorieschangelists
- changelists to filter bycallback
- the callback to use to return the properties- Throws:
ClientException
-
propertySetLocal
public void propertySetLocal(Set<String> paths, String name, byte[] value, Depth depth, Collection<String> changelists, boolean force) throws ClientExceptionDescription copied from interface:ISVNClient
Sets one property of an item with a String value- Specified by:
propertySetLocal
in interfaceISVNClient
- Parameters:
paths
- paths of the itemsname
- name of the propertyvalue
- new value of the property. Set value tonull
to delete a propertydepth
- the depth to recurse into subdirectorieschangelists
- changelists to filter byforce
- do not check if the value is valid- Throws:
ClientException
-
propertySetRemote
public void propertySetRemote(String path, long baseRev, String name, byte[] value, CommitMessageCallback handler, boolean force, Map<String,String> revpropTable, CommitCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Sets one property of an item with a String value- Specified by:
propertySetRemote
in interfaceISVNClient
name
- name of the propertyvalue
- new value of the property. Set value tonull
to delete a propertyforce
- do not check if the value is validrevpropTable
- A string-to-string mapping of revision properties to values which will be set if this operation results in a commit.- Throws:
ClientException
-
revProperty
Description copied from interface:ISVNClient
Retrieve one revsision property of one item- Specified by:
revProperty
in interfaceISVNClient
- Parameters:
path
- path of the itemname
- name of the propertyrev
- revision to retrieve- Returns:
- the Property
- Throws:
ClientException
-
revProperties
Description copied from interface:ISVNClient
Retrieve all revsision properties of one item- Specified by:
revProperties
in interfaceISVNClient
- Parameters:
path
- path of the itemrev
- revision to retrieve- Returns:
- the Properties
- Throws:
ClientException
-
setRevProperty
public void setRevProperty(String path, String name, Revision rev, String value, String originalValue, boolean force) throws ClientExceptionDescription copied from interface:ISVNClient
set one revsision property of one item- Specified by:
setRevProperty
in interfaceISVNClient
- Parameters:
path
- path of the itemname
- name of the propertyrev
- revision to retrievevalue
- value of the propertyoriginalValue
- the original value of the property.force
- use force to set- Throws:
ClientException
-
propertyGet
public byte[] propertyGet(String path, String name, Revision revision, Revision pegRevision) throws ClientException- Specified by:
propertyGet
in interfaceISVNClient
- Throws:
ClientException
-
propertyGet
public byte[] propertyGet(String path, String name, Revision revision, Revision pegRevision, Collection<String> changelists) throws ClientExceptionDescription copied from interface:ISVNClient
Retrieve one property of one item- Specified by:
propertyGet
in interfaceISVNClient
- Parameters:
path
- path of the itemname
- name of propertyrevision
- revision of the itempegRevision
- the revision to interpret path- Returns:
- the Property
- Throws:
ClientException
-
fileContent
public byte[] fileContent(String path, Revision revision, Revision pegRevision) throws ClientExceptionDescription copied from interface:ISVNClient
Retrieve the content of a file Always expands keywords and never returns properties.- Specified by:
fileContent
in interfaceISVNClient
- Parameters:
path
- the path of the filerevision
- the revision to retrievepegRevision
- the revision to interpret path- Returns:
- the content as byte array
- Throws:
ClientException
-
streamFileContent
public Map<String,byte[]> streamFileContent(String path, Revision revision, Revision pegRevision, boolean expandKeywords, boolean returnProps, OutputStream stream) throws ClientExceptionDescription copied from interface:ISVNClient
Write the file's content to the specified output stream. If you need an InputStream, use a PipedInputStream/PipedOutputStream combination.- Specified by:
streamFileContent
in interfaceISVNClient
- Parameters:
path
- the path of the filerevision
- the revision to retrievepegRevision
- the revision at which to interpret the pathreturnProps
- whether to return the file's own (not inherited) properties dalong with the contentsstream
- the stream to write the file's content to- Returns:
- The file's properties if
returnProps
is set (which may yield an empty map), otherwisenull
. - Throws:
ClientException
- See Also:
PipedOutputStream
,PipedInputStream
-
streamFileContent
public void streamFileContent(String path, Revision revision, Revision pegRevision, OutputStream stream) throws ClientExceptionDescription copied from interface:ISVNClient
Write the file's content to the specified output stream. If you need an InputStream, use a PipedInputStream/PipedOutputStream combination. Always expands keywords and never returns properties.- Specified by:
streamFileContent
in interfaceISVNClient
- Parameters:
path
- the path of the filerevision
- the revision to retrievepegRevision
- the revision at which to interpret the pathstream
- the stream to write the file's content to- Throws:
ClientException
- See Also:
PipedOutputStream
,PipedInputStream
-
relocate
public void relocate(String from, String to, String path, boolean ignoreExternals) throws ClientExceptionDescription copied from interface:ISVNClient
Rewrite the url's in the working copy- Specified by:
relocate
in interfaceISVNClient
- Parameters:
from
- old urlto
- new urlpath
- working copy pathignoreExternals
- if externals are ignored during relocate- Throws:
ClientException
-
blame
@Deprecated public void blame(String path, Revision pegRevision, Revision revisionStart, Revision revisionEnd, boolean ignoreMimeType, boolean includeMergedRevisions, BlameCallback callback) throws ClientExceptionDeprecated.Description copied from interface:ISVNClient
Retrieve the content together with the author, the revision and the date of the last change of each lineBehaves like the 1.9 version with
options
set to their default values.- Specified by:
blame
in interfaceISVNClient
- Throws:
ClientException
-
blame
@Deprecated public void blame(String path, Revision pegRevision, Revision revisionStart, Revision revisionEnd, boolean ignoreMimeType, boolean includeMergedRevisions, BlameCallback callback, DiffOptions options) throws ClientExceptionDeprecated.Description copied from interface:ISVNClient
Retrieve the content together with the author, the revision and the date of the last change of each lineBehaves like the 1.12 version but uses BlameCallback instead of BlameLineCallback. The former expects that file contents can be converted from UTF-8 to a String, which is not true in general and may throw exceptions.
- Specified by:
blame
in interfaceISVNClient
- Throws:
ClientException
-
blame
public void blame(String path, Revision pegRevision, Revision revisionStart, Revision revisionEnd, boolean ignoreMimeType, boolean includeMergedRevisions, DiffOptions options, BlameRangeCallback rangeCallback, BlameLineCallback lineCallback) throws ClientExceptionDescription copied from interface:ISVNClient
Retrieve the content together with the author, the revision and the date of the last change of each line.- Specified by:
blame
in interfaceISVNClient
- Parameters:
path
- the pathpegRevision
- the revision to interpret the pathrevisionStart
- the first revision to showrevisionEnd
- the last revision to showignoreMimeType
- whether or not to ignore the mime-typeincludeMergedRevisions
- whether or not to include extra merge informationoptions
- additional options for controlling the outputrangeCallback
- receives the resolved revision range; called exactly once before #lineCallbacklineCallback
- callback to receive the file content and the other information for every line in the file- Throws:
ClientException
-
setConfigDirectory
Description copied from interface:ISVNClient
Set directory for the configuration information, taking the usual steps to ensure that Subversion's config file templates exist in the specified location.. On Windows, setting a non-null
value will override lookup of configuration in the registry.- Specified by:
setConfigDirectory
in interfaceISVNClient
- Parameters:
configDir
- Path of the directory, ornull
for the platform's default.- Throws:
ClientException
-
getConfigDirectory
Description copied from interface:ISVNClient
Get the configuration directory- Specified by:
getConfigDirectory
in interfaceISVNClient
- Returns:
- the directory
- Throws:
ClientException
-
setConfigEventHandler
Description copied from interface:ISVNClient
Set an event handler that will be called every time the configuration is loaded by this client object.- Specified by:
setConfigEventHandler
in interfaceISVNClient
- Throws:
ClientException
-
getConfigEventHandler
Description copied from interface:ISVNClient
Return a reference to the installed configuration event handler. The returned value may benull
.- Specified by:
getConfigEventHandler
in interfaceISVNClient
- Throws:
ClientException
-
cancelOperation
Description copied from interface:ISVNClient
cancel the active operation- Specified by:
cancelOperation
in interfaceISVNClient
- Throws:
ClientException
-
addToChangelist
public void addToChangelist(Set<String> paths, String changelist, Depth depth, Collection<String> changelists) throws ClientExceptionDescription copied from interface:ISVNClient
Add paths to a changelist- Specified by:
addToChangelist
in interfaceISVNClient
- Parameters:
paths
- paths to add to the changelistchangelist
- changelist namedepth
- the depth to recursechangelists
- changelists to filter by- Throws:
ClientException
-
removeFromChangelists
public void removeFromChangelists(Set<String> paths, Depth depth, Collection<String> changelists) throws ClientExceptionDescription copied from interface:ISVNClient
Remove paths from a changelist- Specified by:
removeFromChangelists
in interfaceISVNClient
- Parameters:
paths
- paths to remove from the changelistdepth
- the depth to recursechangelists
- changelists to filter by- Throws:
ClientException
-
getChangelists
public void getChangelists(String rootPath, Collection<String> changelists, Depth depth, ChangelistCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Recursively get the paths which belong to a changelist- Specified by:
getChangelists
in interfaceISVNClient
- Parameters:
rootPath
- the wc path under which to checkchangelists
- the changelists to look under; ifnull
, all changelists will be considered.depth
- the depth to recursecallback
- the callback to return the changelists through- Throws:
ClientException
-
getVersionInfo
public String getVersionInfo(String path, String trailUrl, boolean lastChanged) throws ClientExceptionDescription copied from interface:ISVNClient
Produce a compact "version number" for a working copy- Specified by:
getVersionInfo
in interfaceISVNClient
- Parameters:
path
- path of the working copytrailUrl
- to detect switches of the whole working copylastChanged
- last changed rather than current revisions- Returns:
- the compact "version number"
- Throws:
ClientException
-
upgrade
Description copied from interface:ISVNClient
Recursively upgrade a working copy to a new metadata storage format.- Specified by:
upgrade
in interfaceISVNClient
- Parameters:
path
- path of the working copy- Throws:
ClientException
-
enableLogging
Enable logging in the JNI-code- Parameters:
logLevel
- the level of information to log (See ClientLogLevel)logFilePath
- path of the log file
-
version
Returns version information of subversion and the javahl binding- Returns:
- version information
-
versionMajor
public static int versionMajor()Returns the major version of the javahl binding. Same version of the javahl support the same interfaces- Returns:
- major version number
-
versionMinor
public static int versionMinor()Returns the minor version of the javahl binding. Same version of the javahl support the same interfaces- Returns:
- minor version number
-
versionMicro
public static int versionMicro()Returns the micro (patch) version of the javahl binding. Same version of the javahl support the same interfaces- Returns:
- micro version number
-
lock
Description copied from interface:ISVNClient
Lock a working copy item- Specified by:
lock
in interfaceISVNClient
- Parameters:
paths
- path of the itemforce
- break an existing lock- Throws:
ClientException
-
unlock
Description copied from interface:ISVNClient
Unlock a working copy item- Specified by:
unlock
in interfaceISVNClient
- Parameters:
paths
- path of the itemforce
- break an existing lock- Throws:
ClientException
-
info
public void info(String pathOrUrl, Revision revision, Revision pegRevision, Depth depth, boolean fetchExcluded, boolean fetchActualOnly, boolean includeExternals, Collection<String> changelists, InfoCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Invokecallback
to return informationpathOrUrl
inrevision
. The information returned is system-generated metadata, not the sort of "property" metadata created by users.If both revision arguments are either
null
orRevision.START
, then information will be pulled solely from the working copy; no network connections will be made.Otherwise, information will be pulled from a repository. The actual node revision selected is determined by the
pathOrUrl
as it exists inpegRevision
. IfpegRevision
isRevision.START
, then it defaults toRevision.HEAD
for URLs orRevision.WORKING
for WC targets.If
pathOrUrl
is not a local path, then ifrevision
isRevision.PREVIOUS
(or some other kind that requires a local path), an error will be returned, because the desired revision cannot be determined.If
pathOrUrl
is a file, just invoke the callback on it. If it is a directory, then descend according todepth
.- Specified by:
info
in interfaceISVNClient
- Parameters:
pathOrUrl
- the path or the url of the itemrevision
- the revision of the item to returnpegRevision
- the revision to interpret pathOrUrldepth
- the depth to recursefetchExcluded
- whentrue
, retrieve information about nodes that are excluded from the working copyfetchActualOnly
- whentrue
, retrieve information about node that are not versioned, but are still tree conflicted.includeExternals
- Recurs into externals directorieschangelists
- if non-null, filter paths using changelistscallback
- a callback to receive the infos retrieved- Throws:
ClientException
-
info2
public void info2(String pathOrUrl, Revision revision, Revision pegRevision, Depth depth, Collection<String> changelists, InfoCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Retrieve information about repository or working copy items.Behaves like the 1.9 version, with
fetchExcluded
set tofalse
,fetchActualOnly
set totrue
anfincludeExternals
set tofalse
.- Specified by:
info2
in interfaceISVNClient
- Throws:
ClientException
-
patch
public void patch(String patchPath, String targetPath, boolean dryRun, int stripCount, boolean reverse, boolean ignoreWhitespace, boolean removeTempfiles, PatchCallback callback) throws ClientExceptionDescription copied from interface:ISVNClient
Apply a unidiff patch.- Specified by:
patch
in interfaceISVNClient
- Parameters:
patchPath
- the path of the patchtargetPath
- the path to be patcheddryRun
- whether to actually modify the local contentstripCount
- how many leading path components should be removedreverse
- whether to reverse the patchignoreWhitespace
- whether to ignore whitespaceremoveTempfiles
- whether to remove temp filescallback
- a handler to receive information as files are patched- Throws:
ClientException
-
vacuum
public void vacuum(String wcPath, boolean removeUnversionedItems, boolean removeIgnoredItems, boolean fixRecordedTimestamps, boolean removeUnusedPristines, boolean includeExternals) throws ClientExceptionDescription copied from interface:ISVNClient
Recursively vacuum a working copy, removing unnecessary data.This method will report an error when
removeUnversionedItems
orremoveIgnoredItems
are set, and the working copy is already locked. This prevents accidental corruption of the working copy if this method is invoked while another client is performing some other operation on the working copy.- Specified by:
vacuum
in interfaceISVNClient
- Parameters:
wcPath
- The path of the working copy directory.removeUnversionedItems
- Remove unversioned items from the working copy after it has been successfully cleaned up.removeIgnoredItems
- Remove unversioned items that are ignored by Subversion, after the working copy has been successfully cleaned up.fixRecordedTimestamps
- Update timestamps recorded in the working copy database to their actual on-disk values.removeUnusedPristines
- Remove pristine files that are not referenced by the working copy.includeExternals
- Recurse into externals working copies and vacuum them, too.- Throws:
ClientException
-
openRemoteSession
Description copied from interface:ISVNClient
Open a persistent session to a repository.Note: The session object inherits the progress callback, configuration directory and authentication info.
- Specified by:
openRemoteSession
in interfaceISVNClient
- Parameters:
pathOrUrl
- A path in a working copy from which the session URL is derived, or the URL itself.- Throws:
ClientException
SubversionException
- If an URL redirect cycle was detected
-
openRemoteSession
public ISVNRemote openRemoteSession(String pathOrUrl, int retryAttempts) throws ClientException, SubversionExceptionDescription copied from interface:ISVNClient
Open a persistent session to a repository.Note: The session object inherits the progress callback, configuration directory and authentication info.
- Specified by:
openRemoteSession
in interfaceISVNClient
- Parameters:
pathOrUrl
- A path in a working copy from which the session URL is derived, or the URL itself.retryAttempts
- The number of times to retry the operation if the given URL is redirected.- Throws:
ClientException
SubversionException
- If an URL redirect cycle was detected
-