public class SVNClient extends java.lang.Object implements ISVNClient
| Modifier and Type | Class and Description |
|---|---|
static class |
SVNClient.ClientLogLevel
enum for the constants of the logging levels.
|
| Modifier and Type | Field and Description |
|---|---|
protected long |
cppAddr
slot for the adress of the native peer.
|
| Constructor and Description |
|---|
SVNClient()
Standard empty constructor, builds just the native peer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String path,
Depth depth,
boolean force,
boolean noIgnores,
boolean addParents)
Adds a file to the repository.
|
void |
add(java.lang.String path,
Depth depth,
boolean force,
boolean noIgnores,
boolean noAutoProps,
boolean addParents)
Adds a file to the repository.
|
void |
addToChangelist(java.util.Set<java.lang.String> paths,
java.lang.String changelist,
Depth depth,
java.util.Collection<java.lang.String> changelists)
Add paths to a changelist
|
void |
blame(java.lang.String path,
Revision pegRevision,
Revision revisionStart,
Revision revisionEnd,
boolean ignoreMimeType,
boolean includeMergedRevisions,
BlameCallback callback)
Deprecated.
|
void |
blame(java.lang.String path,
Revision pegRevision,
Revision revisionStart,
Revision revisionEnd,
boolean ignoreMimeType,
boolean includeMergedRevisions,
BlameCallback callback,
DiffOptions options)
Deprecated.
|
void |
blame(java.lang.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 operation
|
long |
checkout(java.lang.String moduleName,
java.lang.String destPath,
Revision revision,
Revision pegRevision,
Depth depth,
boolean ignoreExternals,
boolean allowUnverObstructions)
Executes a revision checkout.
|
void |
cleanup(java.lang.String path)
Recursively cleans up a local directory, finishing any
incomplete operations, removing lockfiles, etc.
|
void |
cleanup(java.lang.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(java.util.Set<java.lang.String> paths,
Depth depth,
boolean noUnlock,
boolean keepChangelist,
java.util.Collection<java.lang.String> changelists,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
CommitMessageCallback handler,
CommitCallback callback)
Commits changes to the repository.
|
void |
copy(java.util.List<CopySource> sources,
java.lang.String destPath,
boolean copyAsChild,
boolean makeParents,
boolean ignoreExternals,
boolean metadataOnly,
boolean pinExternals,
java.util.Map<java.lang.String,java.util.List<ExternalItem>> externalsToPin,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
CommitMessageCallback handler,
CommitCallback callback)
Copy versioned paths with the history preserved.
|
void |
copy(java.util.List<CopySource> sources,
java.lang.String destPath,
boolean copyAsChild,
boolean makeParents,
boolean ignoreExternals,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
CommitMessageCallback handler,
CommitCallback callback)
Copy versioned paths with the history preserved.
|
void |
diff(java.lang.String target,
Revision pegRevision,
Revision startRevision,
Revision endRevision,
java.lang.String relativeToDir,
java.io.OutputStream stream,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds,
boolean ignoreProps,
boolean propsOnly)
Display the differences between two paths.
|
void |
diff(java.lang.String target,
Revision pegRevision,
Revision startRevision,
Revision endRevision,
java.lang.String relativeToDir,
java.io.OutputStream stream,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds,
boolean ignoreProps,
boolean propsOnly,
DiffOptions options)
Display the differences between two paths.
|
void |
diff(java.lang.String target,
Revision pegRevision,
Revision startRevision,
Revision endRevision,
java.lang.String relativeToDir,
java.lang.String outFileName,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds)
Display the differences between two paths.
|
void |
diff(java.lang.String target,
Revision pegRevision,
Revision startRevision,
Revision endRevision,
java.lang.String relativeToDir,
java.lang.String outFileName,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds,
boolean ignoreProps,
boolean propsOnly,
DiffOptions options)
Display the differences between two paths.
|
void |
diff(java.lang.String target1,
Revision revision1,
java.lang.String target2,
Revision revision2,
java.lang.String relativeToDir,
java.io.OutputStream stream,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds,
boolean ignoreProps,
boolean propsOnly)
Display the differences between two paths
|
void |
diff(java.lang.String target1,
Revision revision1,
java.lang.String target2,
Revision revision2,
java.lang.String relativeToDir,
java.io.OutputStream stream,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds,
boolean ignoreProps,
boolean propsOnly,
DiffOptions options)
Display the differences between two paths
|
void |
diff(java.lang.String target1,
Revision revision1,
java.lang.String target2,
Revision revision2,
java.lang.String relativeToDir,
java.lang.String outFileName,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds)
Display the differences between two paths
|
void |
diff(java.lang.String target1,
Revision revision1,
java.lang.String target2,
Revision revision2,
java.lang.String relativeToDir,
java.lang.String outFileName,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds,
boolean ignoreProps,
boolean propsOnly,
DiffOptions options)
Display the differences between two paths
|
void |
diffSummarize(java.lang.String target,
Revision pegRevision,
Revision startRevision,
Revision endRevision,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
DiffSummaryCallback receiver)
Produce a diff summary which lists the items changed between
path and revision pairs.
|
void |
diffSummarize(java.lang.String target1,
Revision revision1,
java.lang.String target2,
Revision revision2,
Depth depth,
java.util.Collection<java.lang.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(java.lang.String srcPath,
java.lang.String destPath,
Revision revision,
Revision pegRevision,
boolean force,
boolean ignoreExternals,
boolean ignorKeywords,
Depth depth,
java.lang.String nativeEOL)
Exports the contents of either a subversion repository into a
'clean' directory (meaning a directory with no administrative
directories).
|
long |
doExport(java.lang.String srcPath,
java.lang.String destPath,
Revision revision,
Revision pegRevision,
boolean force,
boolean ignoreExternals,
Depth depth,
java.lang.String nativeEOL)
Exports the contents of either a subversion repository into a
'clean' directory (meaning a directory with no administrative
directories).
|
void |
doImport(java.lang.String path,
java.lang.String url,
Depth depth,
boolean noIgnore,
boolean noAutoProps,
boolean ignoreUnknownNodeTypes,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
ImportFilterCallback importFilterCallback,
CommitMessageCallback handler,
CommitCallback commitCallback)
Import a file or directory into a repository directory at
head.
|
void |
doImport(java.lang.String path,
java.lang.String url,
Depth depth,
boolean noIgnore,
boolean ignoreUnknownNodeTypes,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
CommitMessageCallback handler,
CommitCallback callback)
Import a file or directory into a repository directory at
head.
|
long |
doSwitch(java.lang.String path,
java.lang.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,
java.lang.String logFilePath)
Enable logging in the JNI-code
|
byte[] |
fileContent(java.lang.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)
|
java.lang.String |
getAdminDirectoryName() |
void |
getChangelists(java.lang.String rootPath,
java.util.Collection<java.lang.String> changelists,
Depth depth,
ChangelistCallback callback)
Recursively get the paths which belong to a changelist
|
java.lang.String |
getConfigDirectory()
Get the configuration directory
|
ConfigEvent |
getConfigEventHandler()
Return a reference to the installed configuration event
handler.
|
java.lang.String |
getLastPath()
Deprecated.
|
Mergeinfo |
getMergeinfo(java.lang.String path,
Revision pegRevision)
Get mergeinfo for
path at pegRevision. |
void |
getMergeinfoLog(Mergeinfo.LogKind kind,
java.lang.String pathOrUrl,
Revision pegRevision,
java.lang.String mergeSourceUrl,
Revision srcPegRevision,
boolean discoverChangedPaths,
Depth depth,
java.util.Set<java.lang.String> revProps,
LogMessageCallback callback)
Retrieve either merged or eligible-to-be-merged revisions.
|
void |
getMergeinfoLog(Mergeinfo.LogKind kind,
java.lang.String pathOrUrl,
Revision pegRevision,
java.lang.String mergeSourceUrl,
Revision srcPegRevision,
Revision srcStartRevision,
Revision srcEndRevision,
boolean discoverChangedPaths,
Depth depth,
java.util.Set<java.lang.String> revProps,
LogMessageCallback callback)
Retrieve either merged or eligible-to-be-merged revisions.
|
RuntimeVersion |
getRuntimeVersion() |
Version |
getVersion() |
VersionExtended |
getVersionExtended(boolean verbose) |
java.lang.String |
getVersionInfo(java.lang.String path,
java.lang.String trailUrl,
boolean lastChanged)
Produce a compact "version number" for a working copy
|
void |
info(java.lang.String pathOrUrl,
Revision revision,
Revision pegRevision,
Depth depth,
boolean fetchExcluded,
boolean fetchActualOnly,
boolean includeExternals,
java.util.Collection<java.lang.String> changelists,
InfoCallback callback)
Invoke
callback to return information
pathOrUrl in revision. |
void |
info2(java.lang.String pathOrUrl,
Revision revision,
Revision pegRevision,
Depth depth,
java.util.Collection<java.lang.String> changelists,
InfoCallback callback)
Retrieve information about repository or working copy items.
|
boolean |
isAdminDirectory(java.lang.String name) |
void |
list(java.lang.String url,
Revision revision,
Revision pegRevision,
Depth depth,
int direntFields,
boolean fetchLocks,
ListCallback callback)
Deprecated.
|
void |
list(java.lang.String url,
Revision revision,
Revision pegRevision,
java.util.List<java.lang.String> patterns,
Depth depth,
int direntFields,
boolean fetchLocks,
boolean includeExternals,
ListItemCallback callback)
Lists the directory entries of a url on the server.
|
void |
lock(java.util.Set<java.lang.String> paths,
java.lang.String comment,
boolean force)
Lock a working copy item
|
void |
logMessages(java.lang.String path,
Revision pegRevision,
java.util.List<RevisionRange> revisionRanges,
boolean stopOnCopy,
boolean discoverPath,
boolean includeMergedRevisions,
java.util.Set<java.lang.String> revProps,
boolean allRevProps,
long limit,
LogMessageCallback callback)
Retrieve the log messages for an item.
|
void |
logMessages(java.lang.String path,
Revision pegRevision,
java.util.List<RevisionRange> ranges,
boolean stopOnCopy,
boolean discoverPath,
boolean includeMergedRevisions,
java.util.Set<java.lang.String> revProps,
long limit,
LogMessageCallback callback)
Deprecated.
|
void |
merge(java.lang.String path,
Revision pegRevision,
java.util.List<RevisionRange> revisions,
java.lang.String localPath,
boolean force,
Depth depth,
boolean ignoreAncestry,
boolean dryRun,
boolean recordOnly)
Merge set of revisions into a new local path.
|
void |
merge(java.lang.String path,
Revision pegRevision,
java.util.List<RevisionRange> revisions,
java.lang.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(java.lang.String path,
Revision pegRevision,
java.util.List<RevisionRange> revisions,
java.lang.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 |
merge(java.lang.String path1,
Revision revision1,
java.lang.String path2,
Revision revision2,
java.lang.String localPath,
boolean force,
Depth depth,
boolean ignoreAncestry,
boolean dryRun,
boolean recordOnly)
Merge changes from two paths into a new local path.
|
void |
merge(java.lang.String path1,
Revision revision1,
java.lang.String path2,
Revision revision2,
java.lang.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(java.lang.String path1,
Revision revision1,
java.lang.String path2,
Revision revision2,
java.lang.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 |
mergeReintegrate(java.lang.String path,
Revision pegRevision,
java.lang.String localPath,
boolean dryRun)
Deprecated.
|
void |
mkdir(java.util.Set<java.lang.String> paths,
boolean makeParents,
java.util.Map<java.lang.String,java.lang.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(java.util.Set<java.lang.String> srcPaths,
java.lang.String destPath,
boolean force,
boolean moveAsChild,
boolean makeParents,
boolean metadataOnly,
boolean allowMixRev,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
CommitMessageCallback handler,
CommitCallback callback)
Move or rename versioned paths.
|
void |
move(java.util.Set<java.lang.String> srcPaths,
java.lang.String destPath,
boolean force,
boolean moveAsChild,
boolean makeParents,
java.util.Map<java.lang.String,java.lang.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(java.lang.String pathOrUrl)
Open a persistent session to a repository.
|
ISVNRemote |
openRemoteSession(java.lang.String pathOrUrl,
int retryAttempts)
Open a persistent session to a repository.
|
void |
password(java.lang.String password)
Sets the password used for authentication.
|
void |
patch(java.lang.String patchPath,
java.lang.String targetPath,
boolean dryRun,
int stripCount,
boolean reverse,
boolean ignoreWhitespace,
boolean removeTempfiles,
PatchCallback callback)
Apply a unidiff patch.
|
void |
properties(java.lang.String path,
Revision revision,
Revision pegRevision,
Depth depth,
java.util.Collection<java.lang.String> changelists,
InheritedProplistCallback callback)
Retrieves the properties of an item, including inherited properties.
|
void |
properties(java.lang.String path,
Revision revision,
Revision pegRevision,
Depth depth,
java.util.Collection<java.lang.String> changelists,
ProplistCallback callback)
Retrieves the properties of an item
|
byte[] |
propertyGet(java.lang.String path,
java.lang.String name,
Revision revision,
Revision pegRevision) |
byte[] |
propertyGet(java.lang.String path,
java.lang.String name,
Revision revision,
Revision pegRevision,
java.util.Collection<java.lang.String> changelists)
Retrieve one property of one item
|
void |
propertySetLocal(java.util.Set<java.lang.String> paths,
java.lang.String name,
byte[] value,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean force)
Sets one property of an item with a String value
|
void |
propertySetRemote(java.lang.String path,
long baseRev,
java.lang.String name,
byte[] value,
CommitMessageCallback handler,
boolean force,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
CommitCallback callback)
Sets one property of an item with a String value
|
void |
relocate(java.lang.String from,
java.lang.String to,
java.lang.String path,
boolean ignoreExternals)
Rewrite the url's in the working copy
|
void |
remove(java.util.Set<java.lang.String> paths,
boolean force,
boolean keepLocal,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
CommitMessageCallback handler,
CommitCallback callback)
Sets a file for deletion.
|
void |
removeFromChangelists(java.util.Set<java.lang.String> paths,
Depth depth,
java.util.Collection<java.lang.String> changelists)
Remove paths from a changelist
|
void |
resolve(java.lang.String path,
Depth depth,
ConflictResult.Choice conflictResult)
Resolves the conflicted state on a WC path (or tree).
|
void |
revert(java.util.Set<java.lang.String> paths,
Depth depth,
java.util.Collection<java.lang.String> changelists)
Reverts set of files or directories to a pristine state.
|
void |
revert(java.util.Set<java.lang.String> paths,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean clearChangelists,
boolean metadataOnly)
Reverts set of files or directories to a pristine state.
|
void |
revert(java.lang.String path,
Depth depth,
java.util.Collection<java.lang.String> changelists)
Reverts a file to a pristine state.
|
java.util.Map<java.lang.String,byte[]> |
revProperties(java.lang.String path,
Revision rev)
Retrieve all revsision properties of one item
|
byte[] |
revProperty(java.lang.String path,
java.lang.String name,
Revision rev)
Retrieve one revsision property of one item
|
void |
setConfigDirectory(java.lang.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(java.lang.String path,
java.lang.String name,
Revision rev,
java.lang.String value,
java.lang.String originalValue,
boolean force)
set one revsision property of one item
|
void |
setTunnelAgent(TunnelAgent tunnelAgent)
Set callbacks for ra_svn tunnel handling.
|
void |
status(java.lang.String path,
Depth depth,
boolean onServer,
boolean onDisk,
boolean getAll,
boolean noIgnore,
boolean ignoreExternals,
boolean depthAsSticky,
java.util.Collection<java.lang.String> changelists,
StatusCallback callback)
Return the status of the working copy and maybe repository.
|
void |
status(java.lang.String path,
Depth depth,
boolean onServer,
boolean getAll,
boolean noIgnore,
boolean ignoreExternals,
java.util.Collection<java.lang.String> changelists,
StatusCallback callback)
Deprecated.
|
java.util.Map<java.lang.String,byte[]> |
streamFileContent(java.lang.String path,
Revision revision,
Revision pegRevision,
boolean expandKeywords,
boolean returnProps,
java.io.OutputStream stream)
Write the file's content to the specified output stream.
|
void |
streamFileContent(java.lang.String path,
Revision revision,
Revision pegRevision,
java.io.OutputStream stream)
Write the file's content to the specified output stream.
|
java.util.Set<java.lang.String> |
suggestMergeSources(java.lang.String path,
Revision pegRevision)
Return an ordered list of suggested merge source URLs.
|
void |
unlock(java.util.Set<java.lang.String> paths,
boolean force)
Unlock a working copy item
|
long[] |
update(java.util.Set<java.lang.String> paths,
Revision revision,
Depth depth,
boolean depthIsSticky,
boolean makeParents,
boolean ignoreExternals,
boolean allowUnverObstructions)
Updates the directories or files from repository
|
void |
upgrade(java.lang.String path)
Recursively upgrade a working copy to a new metadata storage format.
|
void |
username(java.lang.String username)
Sets the username used for authentication.
|
void |
vacuum(java.lang.String wcPath,
boolean removeUnversionedItems,
boolean removeIgnoredItems,
boolean fixRecordedTimestamps,
boolean removeUnusedPristines,
boolean includeExternals)
Recursively vacuum a working copy, removing unnecessary data.
|
static java.lang.String |
version()
Returns version information of subversion and the javahl binding
|
static 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.
|
protected long cppAddr
public SVNClient()
public void dispose()
dispose in interface ISVNClientpublic void finalize()
finalize in class java.lang.Objectpublic Version getVersion()
getVersion in interface ISVNClientpublic RuntimeVersion getRuntimeVersion()
getRuntimeVersion in interface ISVNClientpublic VersionExtended getVersionExtended(boolean verbose)
getVersionExtended in interface ISVNClientpublic java.lang.String getAdminDirectoryName()
getAdminDirectoryName in interface ISVNClient.svn.public boolean isAdminDirectory(java.lang.String name)
isAdminDirectory in interface ISVNClientname - The name of the directory to compare.name is that of a working copy
administrative directory.@Deprecated public java.lang.String getLastPath()
public void status(java.lang.String path,
Depth depth,
boolean onServer,
boolean onDisk,
boolean getAll,
boolean noIgnore,
boolean ignoreExternals,
boolean depthAsSticky,
java.util.Collection<java.lang.String> changelists,
StatusCallback callback)
throws ClientException
ISVNClientstatus in interface ISVNClientpath - 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 of false only
has effect when onServer is
true.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, interpret depth as
the ambient depth of the working copy.changelists - changelists to filter byClientException@Deprecated
public void status(java.lang.String path,
Depth depth,
boolean onServer,
boolean getAll,
boolean noIgnore,
boolean ignoreExternals,
java.util.Collection<java.lang.String> changelists,
StatusCallback callback)
throws ClientException
ISVNClient
Behaves like the 1.9 version with
onDisk = true and
depthAsSticky = false.
status in interface ISVNClientClientExceptionpublic void list(java.lang.String url,
Revision revision,
Revision pegRevision,
java.util.List<java.lang.String> patterns,
Depth depth,
int direntFields,
boolean fetchLocks,
boolean includeExternals,
ListItemCallback callback)
throws ClientException
ISVNClientlist in interface ISVNClienturl - 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 entriesClientException@Deprecated
public void list(java.lang.String url,
Revision revision,
Revision pegRevision,
Depth depth,
int direntFields,
boolean fetchLocks,
ListCallback callback)
throws ClientException
ISVNClient
Behaves like the 1.10 version with
patterns = null and
includeExternals = false
list in interface ISVNClientClientExceptionpublic void username(java.lang.String username)
ISVNClientusername in interface ISVNClientusername - The username, ignored if the empty string. Set
to the empty string to clear it.ISVNClient.password(String)public void password(java.lang.String password)
ISVNClientpassword in interface ISVNClientpassword - The password, ignored if the empty string. Set
to the empty string to clear it.ISVNClient.username(String)public void setPrompt(AuthnCallback prompt)
ISVNClient--no-auth-cache and --non-interactive arguments
accepted by the command-line client.setPrompt in interface ISVNClientprompt - the callback interfacepublic void setPrompt(UserPasswordCallback prompt)
ISVNClient--no-auth-cache and --non-interactive arguments
accepted by the command-line client.setPrompt in interface ISVNClientprompt - the callback interfacepublic void setTunnelAgent(TunnelAgent tunnelAgent)
ISVNClientsetTunnelAgent in interface ISVNClient@Deprecated
public void logMessages(java.lang.String path,
Revision pegRevision,
java.util.List<RevisionRange> ranges,
boolean stopOnCopy,
boolean discoverPath,
boolean includeMergedRevisions,
java.util.Set<java.lang.String> revProps,
long limit,
LogMessageCallback callback)
throws ClientException
ISVNClient
Behaves like the 1.10 version with allRevProps = false
logMessages in interface ISVNClientClientExceptionpublic void logMessages(java.lang.String path,
Revision pegRevision,
java.util.List<RevisionRange> revisionRanges,
boolean stopOnCopy,
boolean discoverPath,
boolean includeMergedRevisions,
java.util.Set<java.lang.String> revProps,
boolean allRevProps,
long limit,
LogMessageCallback callback)
throws ClientException
ISVNClientlogMessages in interface ISVNClientpath - 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 - if true, ignore the
revProps 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 messagesClientExceptionpublic long checkout(java.lang.String moduleName,
java.lang.String destPath,
Revision revision,
Revision pegRevision,
Depth depth,
boolean ignoreExternals,
boolean allowUnverObstructions)
throws ClientException
ISVNClientcheckout in interface ISVNClientmoduleName - 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 addsClientExceptionpublic void notification2(ClientNotifyCallback notify)
ISVNClientnotification2 in interface ISVNClientnotify - listener that the SVN library should call on many
file operations.public void setConflictResolver(ConflictResolverCallback resolver)
ISVNClientsetConflictResolver in interface ISVNClientresolver - The conflict resolution callback.public void setProgressCallback(ProgressCallback progress)
ISVNClientsetProgressCallback in interface ISVNClientprogress - The progress callback.public void remove(java.util.Set<java.lang.String> paths,
boolean force,
boolean keepLocal,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
CommitMessageCallback handler,
CommitCallback callback)
throws ClientException
ISVNClientremove in interface ISVNClientpaths - 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 callbackClientExceptionpublic void revert(java.util.Set<java.lang.String> paths,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean clearChangelists,
boolean metadataOnly)
throws ClientException
ISVNClientrevert in interface ISVNClientdepth - 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/dirsClientExceptionpublic void revert(java.util.Set<java.lang.String> paths,
Depth depth,
java.util.Collection<java.lang.String> changelists)
throws ClientException
ISVNClient
Behaves like the 1.9 version with clearChangelists
set to false;
revert in interface ISVNClientClientExceptionpublic void revert(java.lang.String path,
Depth depth,
java.util.Collection<java.lang.String> changelists)
throws ClientException
ISVNClientrevert in interface ISVNClientpath - path of the file.depth - the depth to recurse into subdirectorieschangelists - changelists to filter byClientExceptionpublic void add(java.lang.String path,
Depth depth,
boolean force,
boolean noIgnores,
boolean noAutoProps,
boolean addParents)
throws ClientException
ISVNClientadd in interface ISVNClientpath - 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 copyClientExceptionpublic void add(java.lang.String path,
Depth depth,
boolean force,
boolean noIgnores,
boolean addParents)
throws ClientException
ISVNClient
Note: Behaves like the 1.8 version with
noAutoProps set to false.
add in interface ISVNClientpath - 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 copyClientExceptionpublic long[] update(java.util.Set<java.lang.String> paths,
Revision revision,
Depth depth,
boolean depthIsSticky,
boolean makeParents,
boolean ignoreExternals,
boolean allowUnverObstructions)
throws ClientException
ISVNClientupdate in interface ISVNClientpaths - 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 not Depth.unknown,
then also set the ambient depth value to depth.ignoreExternals - if externals are ignored during updateallowUnverObstructions - allow unversioned paths that obstruct addsClientExceptionpublic void commit(java.util.Set<java.lang.String> paths,
Depth depth,
boolean noUnlock,
boolean keepChangelist,
java.util.Collection<java.lang.String> changelists,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
CommitMessageCallback handler,
CommitCallback callback)
throws ClientException
ISVNClientcommit in interface ISVNClientpaths - 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 callbackClientExceptionpublic void copy(java.util.List<CopySource> sources, java.lang.String destPath, boolean copyAsChild, boolean makeParents, boolean ignoreExternals, boolean metadataOnly, boolean pinExternals, java.util.Map<java.lang.String,java.util.List<ExternalItem>> externalsToPin, java.util.Map<java.lang.String,java.lang.String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientException
ISVNClientcopy in interface ISVNClientsources - A list of CopySource objects.destPath - Destination path or URL.copyAsChild - Whether to copy srcPaths as
children of destPath.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 an
svn:externals property is defined.
Values are lists of parsed ExternalItem
objects from each external definitions.
If pinExternals is true, only
the externals in this set will be pinned; if this parameter
is null, all externals will be pinned.
If pinExternals is false,
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 be null
if destPath is not a URLClientException - If the copy operation fails.public void copy(java.util.List<CopySource> sources, java.lang.String destPath, boolean copyAsChild, boolean makeParents, boolean ignoreExternals, java.util.Map<java.lang.String,java.lang.String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientException
ISVNClient
Behaves like the 1.9 version with
pinExternals set to false and
externalsToPin set to null and
metadataOnly set to false.
copy in interface ISVNClientClientExceptionpublic void move(java.util.Set<java.lang.String> srcPaths,
java.lang.String destPath,
boolean force,
boolean moveAsChild,
boolean makeParents,
boolean metadataOnly,
boolean allowMixRev,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
CommitMessageCallback handler,
CommitCallback callback)
throws ClientException
ISVNClientmove in interface ISVNClientsrcPaths - Source paths or URLs.destPath - Destination path or URL.force - Whether to perform the move even if local
modifications exist.moveAsChild - Whether to move srcPaths as
children of destPath.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 be null
if destPath is not a URLClientException - If the move operation fails.@Deprecated
public void move(java.util.Set<java.lang.String> srcPaths,
java.lang.String destPath,
boolean force,
boolean moveAsChild,
boolean makeParents,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
CommitMessageCallback handler,
CommitCallback callback)
throws ClientException
move in interface ISVNClientClientExceptionpublic void mkdir(java.util.Set<java.lang.String> paths,
boolean makeParents,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
CommitMessageCallback handler,
CommitCallback callback)
throws ClientException
ISVNClientmkdir in interface ISVNClientpaths - 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 URLsClientExceptionpublic void cleanup(java.lang.String path,
boolean breakLocks,
boolean fixRecordedTimestamps,
boolean clearDavCache,
boolean removeUnusedPristines,
boolean includeExternals)
throws ClientException
ISVNClientcleanup in interface ISVNClientpath - 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.ClientExceptionpublic void cleanup(java.lang.String path)
throws ClientException
ISVNClient
Behaves like the 1.9 version with includeExternals
set to false, and the other flags to
true.
cleanup in interface ISVNClientpath - a local directory.ClientExceptionpublic void resolve(java.lang.String path,
Depth depth,
ConflictResult.Choice conflictResult)
throws SubversionException
ISVNClientresolve in interface ISVNClientpath - The path to resolve.depth - How deep to recurse into child paths.conflictResult - Which version to choose in the event of a
conflict.SubversionException - If an error occurs.public long doExport(java.lang.String srcPath,
java.lang.String destPath,
Revision revision,
Revision pegRevision,
boolean force,
boolean ignoreExternals,
boolean ignorKeywords,
Depth depth,
java.lang.String nativeEOL)
throws ClientException
ISVNClientdoExport in interface ISVNClientsrcPath - 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 exportClientExceptionpublic long doExport(java.lang.String srcPath,
java.lang.String destPath,
Revision revision,
Revision pegRevision,
boolean force,
boolean ignoreExternals,
Depth depth,
java.lang.String nativeEOL)
throws ClientException
ISVNClientNote: Behaves like the 1.9 version with ignoreKeywords set to false.
doExport in interface ISVNClientsrcPath - 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 exportClientExceptionpublic long doSwitch(java.lang.String path,
java.lang.String url,
Revision revision,
Revision pegRevision,
Depth depth,
boolean depthIsSticky,
boolean ignoreExternals,
boolean allowUnverObstructions,
boolean ignoreAncestry)
throws ClientException
ISVNClientdoSwitch in interface ISVNClientpath - the working copy pathurl - the new url for the working copyrevision - the new base revision of working copypegRevision - the revision at which to interpret pathdepth - how deep to traverse into subdirectoriesdepthIsSticky - if set, and depth is not Depth.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 between
path and urlClientExceptionpublic void doImport(java.lang.String path,
java.lang.String url,
Depth depth,
boolean noIgnore,
boolean noAutoProps,
boolean ignoreUnknownNodeTypes,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
ImportFilterCallback importFilterCallback,
CommitMessageCallback handler,
CommitCallback commitCallback)
throws ClientException
ISVNClientdoImport in interface ISVNClientpath - 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 callbackClientExceptionpublic void doImport(java.lang.String path,
java.lang.String url,
Depth depth,
boolean noIgnore,
boolean ignoreUnknownNodeTypes,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
CommitMessageCallback handler,
CommitCallback callback)
throws ClientException
ISVNClientNote: Behaves like the 1.8 version with noAutoProps set to false and without the filtering option.
doImport in interface ISVNClientpath - 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 callbackClientExceptionpublic java.util.Set<java.lang.String> suggestMergeSources(java.lang.String path,
Revision pegRevision)
throws SubversionException
ISVNClientsuggestMergeSources in interface ISVNClientpath - The merge target path for which to suggest sources.pegRevision - Peg revision used to interpret path.ClientException - If an error occurs.SubversionExceptionpublic void merge(java.lang.String path1,
Revision revision1,
java.lang.String path2,
Revision revision2,
java.lang.String localPath,
boolean force,
Depth depth,
boolean ignoreMergeinfo,
boolean diffIgnoreAncestry,
boolean dryRun,
boolean allowMixedRev,
boolean recordOnly)
throws ClientException
ISVNClientmerge in interface ISVNClientpath1 - 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 mergeClientExceptionpublic void merge(java.lang.String path1,
Revision revision1,
java.lang.String path2,
Revision revision2,
java.lang.String localPath,
boolean force,
Depth depth,
boolean ignoreMergeinfo,
boolean diffIgnoreAncestry,
boolean dryRun,
boolean recordOnly)
throws ClientException
ISVNClient
Note: Behaves like the 1.9 version with allowMixedRev
always set to true.
merge in interface ISVNClientpath1 - 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 mergeClientExceptionpublic void merge(java.lang.String path1,
Revision revision1,
java.lang.String path2,
Revision revision2,
java.lang.String localPath,
boolean force,
Depth depth,
boolean ignoreAncestry,
boolean dryRun,
boolean recordOnly)
throws ClientException
ISVNClientNote: Behaves like the 1.8 version where ignoreAncestry maps to both ignoreMergeinfo and diffIgnoreAncestry
merge in interface ISVNClientpath1 - 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 mergeClientExceptionpublic void merge(java.lang.String path,
Revision pegRevision,
java.util.List<RevisionRange> revisions,
java.lang.String localPath,
boolean force,
Depth depth,
boolean ignoreMergeinfo,
boolean diffIgnoreAncestry,
boolean dryRun,
boolean allowMixedRev,
boolean recordOnly)
throws ClientException
ISVNClientmerge in interface ISVNClientpath - 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 mergeClientExceptionpublic void merge(java.lang.String path,
Revision pegRevision,
java.util.List<RevisionRange> revisions,
java.lang.String localPath,
boolean force,
Depth depth,
boolean ignoreMergeinfo,
boolean diffIgnoreAncestry,
boolean dryRun,
boolean recordOnly)
throws ClientException
ISVNClient
Note: Behaves like the 1.9 version with allowMixedRev
always set to true.
merge in interface ISVNClientpath - 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 mergeClientExceptionpublic void merge(java.lang.String path,
Revision pegRevision,
java.util.List<RevisionRange> revisions,
java.lang.String localPath,
boolean force,
Depth depth,
boolean ignoreAncestry,
boolean dryRun,
boolean recordOnly)
throws ClientException
ISVNClientNote: Behaves like the 1.8 version where ignoreAncestry maps to both ignoreMergeinfo and diffIgnoreAncestry.
merge in interface ISVNClientpath - 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 mergeClientException@Deprecated
public void mergeReintegrate(java.lang.String path,
Revision pegRevision,
java.lang.String localPath,
boolean dryRun)
throws ClientException
ISVNClientmergeReintegrate in interface ISVNClientpath - path or urlpegRevision - revision to interpret pathlocalPath - target local pathdryRun - do not change anythingClientExceptionpublic Mergeinfo getMergeinfo(java.lang.String path, Revision pegRevision) throws SubversionException
ISVNClientpath at pegRevision.getMergeinfo in interface ISVNClientpath - WC path or URL.pegRevision - peg revision at which to get the merge info for
path.path.SubversionExceptionpublic void getMergeinfoLog(Mergeinfo.LogKind kind, java.lang.String pathOrUrl, Revision pegRevision, java.lang.String mergeSourceUrl, Revision srcPegRevision, Revision srcStartRevision, Revision srcEndRevision, boolean discoverChangedPaths, Depth depth, java.util.Set<java.lang.String> revProps, LogMessageCallback callback) throws ClientException
ISVNClientgetMergeinfoLog in interface ISVNClientkind - 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 messagesClientExceptionpublic void getMergeinfoLog(Mergeinfo.LogKind kind, java.lang.String pathOrUrl, Revision pegRevision, java.lang.String mergeSourceUrl, Revision srcPegRevision, boolean discoverChangedPaths, Depth depth, java.util.Set<java.lang.String> revProps, LogMessageCallback callback) throws ClientException
ISVNClientNote: Behaves like the 1.8 version, with unspecified revision range.
getMergeinfoLog in interface ISVNClientkind - 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 messagesClientExceptionpublic void diff(java.lang.String target1,
Revision revision1,
java.lang.String target2,
Revision revision2,
java.lang.String relativeToDir,
java.lang.String outFileName,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds)
throws ClientException
ISVNClientdiff in interface ISVNClienttarget1 - 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 sourcesClientExceptionpublic void diff(java.lang.String target1,
Revision revision1,
java.lang.String target2,
Revision revision2,
java.lang.String relativeToDir,
java.io.OutputStream stream,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds,
boolean ignoreProps,
boolean propsOnly)
throws ClientException
ISVNClientdiff in interface ISVNClienttarget1 - 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 onlyClientExceptionpublic void diff(java.lang.String target1,
Revision revision1,
java.lang.String target2,
Revision revision2,
java.lang.String relativeToDir,
java.lang.String outFileName,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds,
boolean ignoreProps,
boolean propsOnly,
DiffOptions options)
throws ClientException
ISVNClientdiff in interface ISVNClienttarget1 - 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 outputClientExceptionpublic void diff(java.lang.String target1,
Revision revision1,
java.lang.String target2,
Revision revision2,
java.lang.String relativeToDir,
java.io.OutputStream stream,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds,
boolean ignoreProps,
boolean propsOnly,
DiffOptions options)
throws ClientException
ISVNClientdiff in interface ISVNClienttarget1 - 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 outputClientExceptionpublic void diff(java.lang.String target,
Revision pegRevision,
Revision startRevision,
Revision endRevision,
java.lang.String relativeToDir,
java.lang.String outFileName,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds)
throws ClientException
ISVNClientdiff in interface ISVNClienttarget - 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 sourcesClientExceptionpublic void diff(java.lang.String target,
Revision pegRevision,
Revision startRevision,
Revision endRevision,
java.lang.String relativeToDir,
java.io.OutputStream stream,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds,
boolean ignoreProps,
boolean propsOnly)
throws ClientException
ISVNClientdiff in interface ISVNClienttarget - 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 onlyClientExceptionpublic void diff(java.lang.String target,
Revision pegRevision,
Revision startRevision,
Revision endRevision,
java.lang.String relativeToDir,
java.lang.String outFileName,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds,
boolean ignoreProps,
boolean propsOnly,
DiffOptions options)
throws ClientException
ISVNClientdiff in interface ISVNClienttarget - 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 outputClientExceptionpublic void diff(java.lang.String target,
Revision pegRevision,
Revision startRevision,
Revision endRevision,
java.lang.String relativeToDir,
java.io.OutputStream stream,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
boolean noDiffDeleted,
boolean force,
boolean copiesAsAdds,
boolean ignoreProps,
boolean propsOnly,
DiffOptions options)
throws ClientException
ISVNClientdiff in interface ISVNClienttarget - 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 outputClientExceptionpublic void diffSummarize(java.lang.String target1,
Revision revision1,
java.lang.String target2,
Revision revision2,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
DiffSummaryCallback receiver)
throws ClientException
ISVNClientdiffSummarize in interface ISVNClienttarget1 - Path or URL.revision1 - Revision of target1.target2 - Path or URL.revision2 - Revision of target2.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 parameter false, 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.ClientExceptionpublic void diffSummarize(java.lang.String target,
Revision pegRevision,
Revision startRevision,
Revision endRevision,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean ignoreAncestry,
DiffSummaryCallback receiver)
throws ClientException
ISVNClientdiffSummarize in interface ISVNClienttarget - Path or URL.pegRevision - Revision at which to interpret
target. If Revision.UNSPECIFIED or
null, behave identically to ISVNClient.diffSummarize(String, Revision, String, Revision, Depth,
Collection, boolean, DiffSummaryCallback), using
path for both of that method's targets.startRevision - Beginning of range for comparison of
target.endRevision - End of range for comparison of
target.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 parameter false, 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.ClientExceptionpublic void properties(java.lang.String path,
Revision revision,
Revision pegRevision,
Depth depth,
java.util.Collection<java.lang.String> changelists,
ProplistCallback callback)
throws ClientException
ISVNClientproperties in interface ISVNClientpath - 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 propertiesClientExceptionpublic void properties(java.lang.String path,
Revision revision,
Revision pegRevision,
Depth depth,
java.util.Collection<java.lang.String> changelists,
InheritedProplistCallback callback)
throws ClientException
ISVNClientproperties in interface ISVNClientpath - 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 propertiesClientExceptionpublic void propertySetLocal(java.util.Set<java.lang.String> paths,
java.lang.String name,
byte[] value,
Depth depth,
java.util.Collection<java.lang.String> changelists,
boolean force)
throws ClientException
ISVNClientpropertySetLocal in interface ISVNClientpaths - paths of the itemsname - name of the propertyvalue - new value of the property. Set value to
null to delete a propertydepth - the depth to recurse into subdirectorieschangelists - changelists to filter byforce - do not check if the value is validClientExceptionpublic void propertySetRemote(java.lang.String path,
long baseRev,
java.lang.String name,
byte[] value,
CommitMessageCallback handler,
boolean force,
java.util.Map<java.lang.String,java.lang.String> revpropTable,
CommitCallback callback)
throws ClientException
ISVNClientpropertySetRemote in interface ISVNClientname - name of the propertyvalue - new value of the property. Set value to
null 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.ClientExceptionpublic byte[] revProperty(java.lang.String path,
java.lang.String name,
Revision rev)
throws ClientException
ISVNClientrevProperty in interface ISVNClientpath - path of the itemname - name of the propertyrev - revision to retrieveClientExceptionpublic java.util.Map<java.lang.String,byte[]> revProperties(java.lang.String path,
Revision rev)
throws ClientException
ISVNClientrevProperties in interface ISVNClientpath - path of the itemrev - revision to retrieveClientExceptionpublic void setRevProperty(java.lang.String path,
java.lang.String name,
Revision rev,
java.lang.String value,
java.lang.String originalValue,
boolean force)
throws ClientException
ISVNClientsetRevProperty in interface ISVNClientpath - 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 setClientExceptionpublic byte[] propertyGet(java.lang.String path,
java.lang.String name,
Revision revision,
Revision pegRevision)
throws ClientException
propertyGet in interface ISVNClientClientExceptionpublic byte[] propertyGet(java.lang.String path,
java.lang.String name,
Revision revision,
Revision pegRevision,
java.util.Collection<java.lang.String> changelists)
throws ClientException
ISVNClientpropertyGet in interface ISVNClientpath - path of the itemname - name of propertyrevision - revision of the itempegRevision - the revision to interpret pathClientExceptionpublic byte[] fileContent(java.lang.String path,
Revision revision,
Revision pegRevision)
throws ClientException
ISVNClientfileContent in interface ISVNClientpath - the path of the filerevision - the revision to retrievepegRevision - the revision to interpret pathClientExceptionpublic java.util.Map<java.lang.String,byte[]> streamFileContent(java.lang.String path,
Revision revision,
Revision pegRevision,
boolean expandKeywords,
boolean returnProps,
java.io.OutputStream stream)
throws ClientException
ISVNClientstreamFileContent in interface ISVNClientpath - 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 toreturnProps is
set (which may yield an empty map), otherwise
null.ClientExceptionPipedOutputStream,
PipedInputStreampublic void streamFileContent(java.lang.String path,
Revision revision,
Revision pegRevision,
java.io.OutputStream stream)
throws ClientException
ISVNClientstreamFileContent in interface ISVNClientpath - 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 toClientExceptionPipedOutputStream,
PipedInputStreampublic void relocate(java.lang.String from,
java.lang.String to,
java.lang.String path,
boolean ignoreExternals)
throws ClientException
ISVNClientrelocate in interface ISVNClientfrom - old urlto - new urlpath - working copy pathignoreExternals - if externals are ignored during relocateClientException@Deprecated
public void blame(java.lang.String path,
Revision pegRevision,
Revision revisionStart,
Revision revisionEnd,
boolean ignoreMimeType,
boolean includeMergedRevisions,
BlameCallback callback)
throws ClientException
ISVNClient
Behaves like the 1.9 version with options set to
their default values.
blame in interface ISVNClientClientException@Deprecated
public void blame(java.lang.String path,
Revision pegRevision,
Revision revisionStart,
Revision revisionEnd,
boolean ignoreMimeType,
boolean includeMergedRevisions,
BlameCallback callback,
DiffOptions options)
throws ClientException
ISVNClientBehaves 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.
blame in interface ISVNClientClientExceptionpublic void blame(java.lang.String path,
Revision pegRevision,
Revision revisionStart,
Revision revisionEnd,
boolean ignoreMimeType,
boolean includeMergedRevisions,
DiffOptions options,
BlameRangeCallback rangeCallback,
BlameLineCallback lineCallback)
throws ClientException
ISVNClientblame in interface ISVNClientpath - 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 fileClientExceptionpublic void setConfigDirectory(java.lang.String configDir)
throws ClientException
ISVNClientnull value will override lookup of
configuration in the registry.setConfigDirectory in interface ISVNClientconfigDir - Path of the directory, or null
for the platform's default.ClientExceptionpublic java.lang.String getConfigDirectory()
throws ClientException
ISVNClientgetConfigDirectory in interface ISVNClientClientExceptionpublic void setConfigEventHandler(ConfigEvent configHandler) throws ClientException
ISVNClientsetConfigEventHandler in interface ISVNClientClientExceptionpublic ConfigEvent getConfigEventHandler() throws ClientException
ISVNClientnull.getConfigEventHandler in interface ISVNClientClientExceptionpublic void cancelOperation()
throws ClientException
ISVNClientcancelOperation in interface ISVNClientClientExceptionpublic void addToChangelist(java.util.Set<java.lang.String> paths,
java.lang.String changelist,
Depth depth,
java.util.Collection<java.lang.String> changelists)
throws ClientException
ISVNClientaddToChangelist in interface ISVNClientpaths - paths to add to the changelistchangelist - changelist namedepth - the depth to recursechangelists - changelists to filter byClientExceptionpublic void removeFromChangelists(java.util.Set<java.lang.String> paths,
Depth depth,
java.util.Collection<java.lang.String> changelists)
throws ClientException
ISVNClientremoveFromChangelists in interface ISVNClientpaths - paths to remove from the changelistdepth - the depth to recursechangelists - changelists to filter byClientExceptionpublic void getChangelists(java.lang.String rootPath,
java.util.Collection<java.lang.String> changelists,
Depth depth,
ChangelistCallback callback)
throws ClientException
ISVNClientgetChangelists in interface ISVNClientrootPath - the wc path under which to checkchangelists - the changelists to look under;
if null, all changelists will be considered.depth - the depth to recursecallback - the callback to return the changelists throughClientExceptionpublic java.lang.String getVersionInfo(java.lang.String path,
java.lang.String trailUrl,
boolean lastChanged)
throws ClientException
ISVNClientgetVersionInfo in interface ISVNClientpath - path of the working copytrailUrl - to detect switches of the whole working copylastChanged - last changed rather than current revisionsClientExceptionpublic void upgrade(java.lang.String path)
throws ClientException
ISVNClientupgrade in interface ISVNClientpath - path of the working copyClientExceptionpublic static void enableLogging(SVNClient.ClientLogLevel logLevel, java.lang.String logFilePath)
logLevel - the level of information to log (See
ClientLogLevel)logFilePath - path of the log filepublic static java.lang.String version()
public static int versionMajor()
public static int versionMinor()
public static int versionMicro()
public void lock(java.util.Set<java.lang.String> paths,
java.lang.String comment,
boolean force)
throws ClientException
ISVNClientlock in interface ISVNClientpaths - path of the itemforce - break an existing lockClientExceptionpublic void unlock(java.util.Set<java.lang.String> paths,
boolean force)
throws ClientException
ISVNClientunlock in interface ISVNClientpaths - path of the itemforce - break an existing lockClientExceptionpublic void info(java.lang.String pathOrUrl,
Revision revision,
Revision pegRevision,
Depth depth,
boolean fetchExcluded,
boolean fetchActualOnly,
boolean includeExternals,
java.util.Collection<java.lang.String> changelists,
InfoCallback callback)
throws ClientException
ISVNClientcallback to return information
pathOrUrl in revision. The
information returned is system-generated metadata, not the sort
of "property" metadata created by users.
If both revision arguments are either null or
Revision.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 in
pegRevision. If pegRevision is
Revision.START, then it defaults to Revision.HEAD for URLs or Revision.WORKING for WC
targets.
If pathOrUrl is not a local path, then if
revision is Revision.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 to depth.
info in interface ISVNClientpathOrUrl - the path or the url of the itemrevision - the revision of the item to returnpegRevision - the revision to interpret pathOrUrldepth - the depth to recursefetchExcluded - when true, retrieve
information about nodes that are excluded from the working copyfetchActualOnly - when true, 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 retrievedClientExceptionpublic void info2(java.lang.String pathOrUrl,
Revision revision,
Revision pegRevision,
Depth depth,
java.util.Collection<java.lang.String> changelists,
InfoCallback callback)
throws ClientException
ISVNClient
Behaves like the 1.9 version, with fetchExcluded
set to false, fetchActualOnly set to
true anf includeExternals set to
false.
info2 in interface ISVNClientClientExceptionpublic void patch(java.lang.String patchPath,
java.lang.String targetPath,
boolean dryRun,
int stripCount,
boolean reverse,
boolean ignoreWhitespace,
boolean removeTempfiles,
PatchCallback callback)
throws ClientException
ISVNClientpatch in interface ISVNClientpatchPath - 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 patchedClientExceptionpublic void vacuum(java.lang.String wcPath,
boolean removeUnversionedItems,
boolean removeIgnoredItems,
boolean fixRecordedTimestamps,
boolean removeUnusedPristines,
boolean includeExternals)
throws ClientException
ISVNClient
This method will report an error when
removeUnversionedItems or
removeIgnoredItems 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.
vacuum in interface ISVNClientwcPath - 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.ClientExceptionpublic ISVNRemote openRemoteSession(java.lang.String pathOrUrl) throws ClientException, SubversionException
ISVNClientNote: The session object inherits the progress callback, configuration directory and authentication info.
openRemoteSession in interface ISVNClientpathOrUrl - A path in a working copy from which the
session URL is derived, or the URL itself.ClientExceptionSubversionException - If an URL redirect cycle was detectedpublic ISVNRemote openRemoteSession(java.lang.String pathOrUrl, int retryAttempts) throws ClientException, SubversionException
ISVNClientNote: The session object inherits the progress callback, configuration directory and authentication info.
openRemoteSession in interface ISVNClientpathOrUrl - 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.ClientExceptionSubversionException - If an URL redirect cycle was detected