Package org.tmatesoft.svn.core.javahl17
Class SVNClientImpl
java.lang.Object
org.tmatesoft.svn.core.javahl17.SVNClientImpl
- All Implemented Interfaces:
ISVNClient
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final java.lang.Stringprivate ISVNAuthenticationManagerprivate ISVNAuthenticationStorageprivate java.lang.Stringprivate ISVNConflictHandlerprivate ConflictResolverCallbackprivate JavaHLCompositeLogprivate JavaHLEventHandlerprivate static intprivate DefaultSVNOptionsprivate java.lang.Stringprivate JavaHLProgressLogprivate UserPasswordCallbackprivate static ISVNAuthenticationStorageprivate booleanprivate SvnOperationFactoryprivate java.lang.String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedSVNClientImpl(SvnOperationFactory svnOperationFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a file to the repository.voidadd(java.lang.String path, Depth depth, boolean force, boolean noIgnores, boolean noAutoProps, boolean addParents) Adds a file to the repository.voidaddToChangelist(java.util.Set<java.lang.String> paths, java.lang.String changelist, Depth depth, java.util.Collection<java.lang.String> changelists) Add paths to a changelistprivate voidprivate voidvoidblame(java.lang.String path, Revision pegRevision, Revision revisionStart, Revision revisionEnd, boolean ignoreMimeType, boolean includeMergedRevisions, BlameCallback callback) Retrieve the content together with the author, the revision and the date of the last change of each linevoidcancel the active operationlongcheckout(java.lang.String moduleName, java.lang.String destPath, Revision revision, Revision pegRevision, Depth depth, boolean ignoreExternals, boolean allowUnverObstructions) Executes a revision checkout.voidcleanup(java.lang.String path) Recursively cleans up a local directory, finishing any incomplete operations, removing lockfiles, etc.private java.lang.StringcombinePathPrefixes(java.lang.String pathPrefix1, java.lang.String pathPrefix2) voidcommit(java.util.Set<java.lang.String> path, 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.voidcopy(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.private voidcopyLocal(java.util.List<CopySource> localSources, java.lang.String destPath, boolean copyAsChild, boolean makeParents, boolean ignoreExternals) private voidcopyRemote(java.util.List<CopySource> remoteSources, java.lang.String destPath, boolean copyAsChild, boolean makeParents, java.util.Map<java.lang.String, java.lang.String> revpropTable, CommitMessageCallback handler, CommitCallback callback) voiddiff(java.lang.String target1, Revision revision1, java.lang.String target2, Revision revision2, java.lang.String relativeToDir, java.io.OutputStream outStream, 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 pathsvoiddiff(java.lang.String target1, Revision revision1, java.lang.String target2, Revision revision2, java.lang.String relativeToDir, java.io.OutputStream outStream, 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 pathsvoiddiff(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) voiddiff(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) voiddiff(java.lang.String target, Revision pegRevision, Revision startRevision, Revision endRevision, java.lang.String relativeToDir, java.io.OutputStream outStream, 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.voiddiff(java.lang.String target, Revision pegRevision, Revision startRevision, Revision endRevision, java.lang.String relativeToDir, java.io.OutputStream outStream, 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.voiddiff(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) voiddiff(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) voiddiffSummarize(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.voiddiffSummarize(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.voiddispose()release the native peer (should not depend on finalize)longdoExport(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).voiddoImport(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 callback) Import a file or directory into a repository directory at head.voiddoImport(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.longdoSwitch(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.byte[]fileContent(java.lang.String path, Revision revision, Revision pegRevision) Retrieve the content of a fileprivate voidfillLocalAndRemoteTargets(java.util.Set<java.lang.String> path, java.util.Set<java.lang.String> localPaths, java.util.Set<java.lang.String> remoteUrls) java.lang.Stringprivate ISvnObjectReceiver<SvnAnnotateItem>getAnnotateItemReceiver(BlameCallback callback) voidgetChangelists(java.lang.String rootPath, java.util.Collection<java.lang.String> changelists, Depth depth, ChangelistCallback callback) Recursively get the paths which belong to a changelistprivate ChangePath.ActiongetChangePathAction(char type) private java.util.Set<ChangePath>getChangePaths(java.util.Map<java.lang.String, SVNLogEntryPath> changedPaths) private ChecksumgetChecksum(SvnChecksum checksum) private Checksum.Kindstatic ClientExceptiongetClientException(java.lang.Throwable e) (package private) static ClientNotifyInformationgetClientNotifyInformation(java.lang.String pathPrefix, SVNEvent event, java.lang.String path) private static ClientNotifyInformation.Actionprivate static ClientNotifyInformation.LockStatusgetClientNotifyInformationLockStatus(SVNStatusType lockStatus) private static ClientNotifyInformation.Statusprivate ISvnCommitHandlergetCommitHandler(CommitMessageCallback callback) private CommitInfogetCommitInfo(SVNCommitInfo commitInfo, SVNURL repositoryRoot) private ISvnObjectReceiver<SVNCommitInfo>getCommitInfoReceiver(CommitCallback callback) java.lang.StringGet the configuration directoryprivate ConflictDescriptorgetConflictDescription(SVNConflictDescription conflictDescription) private ConflictDescriptor.ActiongetConflictDescriptorAction(SVNConflictAction conflictAction) private ConflictDescriptor.KindgetConflictDescriptorKind(SVNConflictDescription conflictDescription) private ConflictDescriptor.OperationgetConflictDescriptorOperation(SVNOperation operation) private ConflictDescriptor.ReasongetConflictDescriptorReason(SVNConflictReason conflictReason) private java.util.Set<ConflictDescriptor>getConflictDescriptors(java.util.Collection<SVNConflictDescription> conflicts) protected ISVNConflictHandlerprivate ISVNConflictHandlergetConflictHandler(ConflictResolverCallback callback) private ConflictVersiongetConflictVersion(SVNConflictVersion conflictVersion) private Depthprivate DiffSummary.DiffKindgetDiffKind(SVNStatusType type) private SVNDiffOptionsgetDiffOptions(DiffOptions diffOptions) private ISvnObjectReceiver<SvnDiffStatus>getDiffStatusReceiver(DiffSummaryCallback receiver) private DiffSummarygetDiffSummary(SvnDiffStatus diffStatus) private DirEntrygetDirEntry(SVNDirEntry dirEntry) private ISvnObjectReceiver<SVNDirEntry>getDirEntryReceiver(ListCallback callback) private static java.lang.StringgetErrorMessageString(SVNErrorMessage errorMessage) private java.io.FilegetFile(java.lang.String path) private ISVNFileFiltergetFileFilter(ImportFilterCallback filterCallback) private java.lang.StringgetFilePath(java.io.File path) private Infoprivate ISvnObjectReceiver<SvnInfo>getInfoReceiver(InfoCallback callback) private static java.util.Collection<InheritedProplistCallback.InheritedItem>getInheritedProperties(java.util.List<SvnInheritedProperties> inheritedProperties) (package private) static Lockprivate ISvnObjectReceiver<SVNLogEntry>getLogEntryReceiver(LogMessageCallback callback) private static longgetLongDate(java.util.Date date) getMergeinfo(java.lang.String path, Revision pegRevision) Get mergeinfo forpathatpegRevision.private MergeinfogetMergeinfo(java.util.Map<SVNURL, SVNMergeRangeList> mergeInfoMap) voidgetMergeinfoLog(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.voidgetMergeinfoLog(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.private static NodeKindgetNodeKind(SVNNodeKind kind) private java.lang.StringgetPathPrefix(java.lang.String pathOrUrl) private java.lang.StringgetPathPrefix(java.lang.String pathOrUrl1, java.lang.String pathOrUrl2) private java.lang.StringgetPathPrefix(java.util.Collection<?> pathsOrUrls) private java.lang.StringgetPathPrefix(java.util.Collection<?> pathsOrUrls, java.lang.String destPath) private static java.util.Map<java.lang.String,byte[]> getProperties(SVNProperties svnProperties) private byte[]getProperty(java.lang.String path, java.lang.String name, Revision rev, Revision pegRevision, boolean revisionProperties, java.util.Collection<java.lang.String> changelists) private static java.util.Map<java.lang.String,java.lang.String> getRevisionProperties(SVNProperties revisionProperties) private java.lang.String[]getRevisionPropertiesNames(java.util.Set<java.lang.String> revProps) private static RevisionRangegetRevisionRange(SVNMergeRange revisionRange) static ISVNAuthenticationStorageprivate Info.ScheduleKindgetScheduleKind(SvnSchedule schedule) private Statusprivate Status.KindgetStatusKind(SVNStatusType statusType) private ISvnObjectReceiver<SvnStatus>getStatusReceiver(StatusCallback callback) private CommitItemgetSvnCommitItem(SvnCommitItem commitable) private SVNConflictChoiceprivate SVNConflictResultgetSVNConflictResult(ConflictResult conflictResult) private SvnCopySourcegetSvnCopySource(CopySource localSource) private SVNDepthgetSVNDepth(Depth depth) private SVNPropertiesgetSVNProperties(java.util.Map<java.lang.String, java.lang.String> revpropTable) private ISvnObjectReceiver<SVNProperties>getSVNPropertiesReceiver(ProplistCallback callback) (package private) static SVNRevisiongetSVNRevision(Revision revision) private SvnRevisionRangegetSvnRevisionRange(RevisionRange range) private java.util.Collection<SvnRevisionRange>getSvnRevisionRanges(java.util.List<RevisionRange> ranges) private SvnTargetgetTarget(java.lang.String path) private SvnTargetprivate java.lang.StringgetUrlString(SVNURL url) getVersionExtended(boolean verbose) java.lang.StringgetVersionInfo(java.lang.String path, java.lang.String trailUrl, boolean lastChanged) Produce a compact "version number" for a working copyvoidinfo2(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.booleanisAdminDirectory(java.lang.String name) voidlist(java.lang.String url, Revision revision, Revision pegRevision, Depth depth, int direntFields, boolean fetchLocks, ListCallback callback) Lists the directory entries of a url on the server.voidlock(java.util.Set<java.lang.String> path, java.lang.String comment, boolean force) Lock a working copy itemvoidlogMessages(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) Retrieve the log messages for an item.voidmerge(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.voidmerge(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.voidmerge(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.voidmerge(java.lang.String path, Revision pegRevision, java.util.List<RevisionRange> revisions, java.lang.String localPath, boolean force, Depth depth, boolean ignoreMergeinfo, boolean ignoreAncestry, boolean dryRun, boolean recordOnly) Merge set of revisions into a new local path.voidmergeReintegrate(java.lang.String path, Revision pegRevision, java.lang.String localPath, boolean dryRun) Perform a reintegration merge of path into localPath.voidmkdir(java.util.Set<java.lang.String> path, 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.private voidmkdirLocal(java.util.Set<java.lang.String> localPaths, boolean makeParents) private voidmkdirRemote(java.util.Set<java.lang.String> remoteUrls, boolean makeParents, java.util.Map<java.lang.String, java.lang.String> revpropTable, CommitMessageCallback handler, CommitCallback callback) voidmove(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.voidmove(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) private voidmoveLocal(java.util.Set<java.lang.String> srcPaths, java.lang.String destPath, boolean force, boolean moveAsChild, boolean makeParents, boolean metadataOnly, boolean allowMixRev) private voidmoveRemote(java.util.Set<java.lang.String> srcPaths, java.lang.String destPath, boolean moveAsChild, boolean makeParents, java.util.Map<java.lang.String, java.lang.String> revpropTable, CommitMessageCallback handler, CommitCallback callback) static SVNClientImplvoidnotification2(ClientNotifyCallback notifyCallback) Sets the notification callback used to send processing information back to the calling program.voidpassword(java.lang.String password) Sets the password used for authentication.voidpatch(java.lang.String patchPath, java.lang.String targetPath, boolean dryRun, int stripCount, boolean reverse, boolean ignoreWhitespace, boolean removeTempfiles, PatchCallback callback) Apply a unidiff patch.voidproperties(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.voidproperties(java.lang.String path, Revision revision, Revision pegRevision, Depth depth, java.util.Collection<java.lang.String> changelists, ProplistCallback callback) Retrieves the properties of an itembyte[]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 itemvoidpropertySetLocal(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 valuevoidpropertySetRemote(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) voidrelocate(java.lang.String from, java.lang.String to, java.lang.String path, boolean ignoreExternals) Rewrite the url's in the working copyvoidremove(java.util.Set<java.lang.String> path, boolean force, boolean keepLocal, java.util.Map<java.lang.String, java.lang.String> revpropTable, CommitMessageCallback handler, CommitCallback callback) Sets a file for deletion.voidremoveFromChangelists(java.util.Set<java.lang.String> paths, Depth depth, java.util.Collection<java.lang.String> changelists) Remove paths from a changelistprivate voidremoveLocal(java.util.Set<java.lang.String> localPaths, boolean force, boolean keepLocal) private voidremoveRemote(java.util.Set<java.lang.String> remoteUrls, java.util.Map<java.lang.String, java.lang.String> revpropTable, CommitMessageCallback handler, CommitCallback callback) private voidresetLog()voidresolve(java.lang.String path, Depth depth, ConflictResult.Choice conflictResult) Resolves the conflicted state on a WC path (or tree).voidReverts 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 itembyte[]revProperty(java.lang.String path, java.lang.String name, Revision rev) Retrieve one revsision property of one itemvoidvoidsetConfigDirectory(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..voidsetConflictResolver(ConflictResolverCallback callback) Set the conflict resolution callback.voidsetProgressCallback(ProgressCallback listener) Set the progress callback.voidsetPrompt(UserPasswordCallback prompt) Register callback interface to supply username and password on demand.voidsetRevProperty(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 itemstatic voidvoidstatus(java.lang.String path, Depth depth, boolean onServer, boolean getAll, boolean noIgnore, boolean ignoreExternals, java.util.Collection<java.lang.String> changelists, StatusCallback callback) List a directory or file of the working copy.voidstreamFileContent(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.private voidthrowSvnException(java.lang.Exception e) voidunlock(java.util.Set<java.lang.String> path, boolean force) Unlock a working copy itemlong[]update(java.util.Set<java.lang.String> path, Revision revision, Depth depth, boolean depthIsSticky, boolean makeParents, boolean ignoreExternals, boolean allowUnverObstructions) Updates the directories or files from repositoryprivate voidvoidupgrade(java.lang.String path) Recursively upgrade a working copy to a new metadata storage format.voidusername(java.lang.String username) Sets the username used for authentication.(package private) static int(package private) static int(package private) static int(package private) static long(package private) static java.lang.StringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
APR_ERROR_FIELD_NAME
private static final java.lang.String APR_ERROR_FIELD_NAME- See Also:
-
instanceCount
private static int instanceCount -
svnOperationFactory
-
shouldDisposeSvnOperationsFactory
private boolean shouldDisposeSvnOperationsFactory -
username
private java.lang.String username -
password
private java.lang.String password -
prompt
-
configDir
private java.lang.String configDir -
options
-
authenticationManager
-
authenticationStorage
-
conflictHandler
-
eventHandler
-
debugLog
-
progressListener
-
runtimeAuthenticationStorage
-
conflictResolverCallback
-
-
Constructor Details
-
SVNClientImpl
protected SVNClientImpl() -
SVNClientImpl
-
-
Method Details
-
newInstance
-
dispose
public void dispose()Description copied from interface:ISVNClientrelease the native peer (should not depend on finalize)- Specified by:
disposein interfaceISVNClient
-
getVersion
- Specified by:
getVersionin interfaceISVNClient- Returns:
- Version information about the underlying native libraries.
-
getAdminDirectoryName
public java.lang.String getAdminDirectoryName()- Specified by:
getAdminDirectoryNamein interfaceISVNClient- Returns:
- The name of the working copy's administrative
directory, which is usually
.svn. - See Also:
-
isAdminDirectory
public boolean isAdminDirectory(java.lang.String name) - Specified by:
isAdminDirectoryin interfaceISVNClient- Parameters:
name- The name of the directory to compare.- Returns:
- Whether
nameis that of a working copy administrative directory.
-
getOptions
-
getConflictHandler
-
status
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 Description copied from interface:ISVNClientList a directory or file of the working copy.- Specified by:
statusin interfaceISVNClient- Parameters:
path- Path to explore.depth- How deep to recurse into subdirectories.onServer- Request status information from server.getAll- get status for uninteresting (unchanged) files.noIgnore- get status for normaly ignored files and directories.ignoreExternals- if externals are ignored during statuschangelists- changelists to filter by- Throws:
ClientException
-
list
public void list(java.lang.String url, Revision revision, Revision pegRevision, Depth depth, int direntFields, boolean fetchLocks, ListCallback callback) throws ClientException Description copied from interface:ISVNClientLists the directory entries of a url on the server.- Specified by:
listin interfaceISVNClient- Parameters:
url- the url to listrevision- the revision to listpegRevision- the revision to interpret urldepth- the depth to recurse into subdirectoriesdirentFields- the fields to retrievefetchLocks- whether to fetch lock informationcallback- the callback to receive the directory entries- Throws:
ClientException
-
username
public void username(java.lang.String username) Description copied from interface:ISVNClientSets the username used for authentication.- Specified by:
usernamein interfaceISVNClient- Parameters:
username- The username, ignored if the empty string. Set to the empty string to clear it.- See Also:
-
password
public void password(java.lang.String password) Description copied from interface:ISVNClientSets the password used for authentication.- Specified by:
passwordin interfaceISVNClient- Parameters:
password- The password, ignored if the empty string. Set to the empty string to clear it.- See Also:
-
setPrompt
Description copied from interface:ISVNClientRegister callback interface to supply username and password on demand. This callback can also be used to provide theequivalent of the--no-auth-cacheand--non-interactivearguments accepted by the command-line client.- Specified by:
setPromptin interfaceISVNClient- Parameters:
prompt- the callback interface
-
logMessages
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 Description copied from interface:ISVNClientRetrieve the log messages for an item.- Specified by:
logMessagesin interfaceISVNClient- Parameters:
path- path or url to get the log message for.pegRevision- revision to interpret pathranges- 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 retrievelimit- 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(java.lang.String moduleName, java.lang.String destPath, Revision revision, Revision pegRevision, Depth depth, boolean ignoreExternals, boolean allowUnverObstructions) throws ClientException Description copied from interface:ISVNClientExecutes a revision checkout.- Specified by:
checkoutin 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:ISVNClientSets the notification callback used to send processing information back to the calling program.- Specified by:
notification2in interfaceISVNClient- Parameters:
notifyCallback- listener that the SVN library should call on many file operations.
-
getEventHandler
-
setConflictResolver
Description copied from interface:ISVNClientSet the conflict resolution callback.- Specified by:
setConflictResolverin interfaceISVNClient- Parameters:
callback- The conflict resolution callback.
-
setProgressCallback
Description copied from interface:ISVNClientSet the progress callback.- Specified by:
setProgressCallbackin interfaceISVNClient- Parameters:
listener- The progress callback.
-
getDebugLog
-
setClientCredentialsStorage
-
getClientCredentialsStorage
-
setRuntimeCredentialsStorage
-
getRuntimeCredentialsStorage
-
remove
public void remove(java.util.Set<java.lang.String> path, boolean force, boolean keepLocal, java.util.Map<java.lang.String, java.lang.String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientExceptionDescription copied from interface:ISVNClientSets a file for deletion.- Specified by:
removein interfaceISVNClient- Parameters:
path- 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(java.lang.String path, Depth depth, java.util.Collection<java.lang.String> changelists) throws ClientException Description copied from interface:ISVNClientReverts a file to a pristine state.- Specified by:
revertin interfaceISVNClient- Parameters:
path- path of the file.depth- the depth to recurse into subdirectorieschangelists- changelists to filter by- Throws:
ClientException
-
add
public void add(java.lang.String path, Depth depth, boolean force, boolean noIgnores, boolean addParents) throws ClientException Description copied from interface:ISVNClientAdds a file to the repository.- Specified by:
addin 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
-
add
public void add(java.lang.String path, Depth depth, boolean force, boolean noIgnores, boolean noAutoProps, boolean addParents) throws ClientException Description copied from interface:ISVNClientAdds a file to the repository.- Specified by:
addin 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
-
update
public long[] update(java.util.Set<java.lang.String> path, Revision revision, Depth depth, boolean depthIsSticky, boolean makeParents, boolean ignoreExternals, boolean allowUnverObstructions) throws ClientException Description copied from interface:ISVNClientUpdates the directories or files from repository- Specified by:
updatein interfaceISVNClient- Parameters:
path- 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(java.util.Set<java.lang.String> path, 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 ClientExceptionDescription copied from interface:ISVNClientCommits changes to the repository.- Specified by:
commitin interfaceISVNClient- Parameters:
path- 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(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 ClientExceptionDescription copied from interface:ISVNClientCopy versioned paths with the history preserved.- Specified by:
copyin interfaceISVNClient- Parameters:
sources- A list ofCopySourceobjects.destPath- Destination path or URL.copyAsChild- Whether to copysrcPathsas children ofdestPath.makeParents- Whether to create intermediate parentsignoreExternals- Whether or not to process external definitions as part of this operation.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 benullifdestPathis not a URL- Throws:
ClientException- If the copy operation fails.
-
move
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- Specified by:
movein interfaceISVNClient- Throws:
ClientException
-
move
public 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 ClientExceptionDescription copied from interface:ISVNClientMove or rename versioned paths.- Specified by:
movein 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 movesrcPathsas 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 benullifdestPathis not a URL- Throws:
ClientException- If the move operation fails.
-
mkdir
public void mkdir(java.util.Set<java.lang.String> path, boolean makeParents, java.util.Map<java.lang.String, java.lang.String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientExceptionDescription copied from interface:ISVNClientCreates a directory directly in a repository or creates a directory on disk and schedules it for addition.- Specified by:
mkdirin interfaceISVNClient- Parameters:
path- 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
Description copied from interface:ISVNClientRecursively cleans up a local directory, finishing any incomplete operations, removing lockfiles, etc.- Specified by:
cleanupin interfaceISVNClient- Parameters:
path- a local directory.- Throws:
ClientException
-
resolve
public void resolve(java.lang.String path, Depth depth, ConflictResult.Choice conflictResult) throws SubversionException Description copied from interface:ISVNClientResolves the conflicted state on a WC path (or tree).- Specified by:
resolvein 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(java.lang.String srcPath, java.lang.String destPath, Revision revision, Revision pegRevision, boolean force, boolean ignoreExternals, Depth depth, java.lang.String nativeEOL) throws ClientException Description copied from interface:ISVNClientExports the contents of either a subversion repository into a 'clean' directory (meaning a directory with no administrative directories).- Specified by:
doExportin 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(java.lang.String path, java.lang.String url, Revision revision, Revision pegRevision, Depth depth, boolean depthIsSticky, boolean ignoreExternals, boolean allowUnverObstructions, boolean ignoreAncestry) throws ClientException Description copied from interface:ISVNClientUpdate local copy to mirror a new url.- Specified by:
doSwitchin 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 interpretpathdepth- 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 betweenpathandurl- Throws:
ClientException
-
doImport
public 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 ClientExceptionDescription copied from interface:ISVNClientImport a file or directory into a repository directory at head.- Specified by:
doImportin 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
-
doImport
public 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 callback) throws ClientExceptionDescription copied from interface:ISVNClientImport a file or directory into a repository directory at head.- Specified by:
doImportin 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 callbackcallback- the commit status callback- Throws:
ClientException
-
suggestMergeSources
public java.util.Set<java.lang.String> suggestMergeSources(java.lang.String path, Revision pegRevision) throws SubversionException Description copied from interface:ISVNClientReturn an ordered list of suggested merge source URLs.- Specified by:
suggestMergeSourcesin 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(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 Description copied from interface:ISVNClientMerge changes from two paths into a new local path.- Specified by:
mergein 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(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 Description copied from interface:ISVNClientMerge set of revisions into a new local path.- Specified by:
mergein 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
-
merge
public 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 Description copied from interface:ISVNClientMerge changes from two paths into a new local path.- Specified by:
mergein 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(java.lang.String path, Revision pegRevision, java.util.List<RevisionRange> revisions, java.lang.String localPath, boolean force, Depth depth, boolean ignoreMergeinfo, boolean ignoreAncestry, boolean dryRun, boolean recordOnly) throws ClientException Description copied from interface:ISVNClientMerge set of revisions into a new local path.- Specified by:
mergein 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 unrelatedignoreAncestry- always treat source files as relateddryRun- do not change anythingrecordOnly- record mergeinfo but do not run merge- Throws:
ClientException
-
mergeReintegrate
public void mergeReintegrate(java.lang.String path, Revision pegRevision, java.lang.String localPath, boolean dryRun) throws ClientException Description copied from interface:ISVNClientPerform 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:
mergeReintegratein interfaceISVNClient- Parameters:
path- path or urlpegRevision- revision to interpret pathlocalPath- target local pathdryRun- do not change anything- Throws:
ClientException
-
getMergeinfo
public Mergeinfo getMergeinfo(java.lang.String path, Revision pegRevision) throws SubversionException Description copied from interface:ISVNClientGet mergeinfo forpathatpegRevision.- Specified by:
getMergeinfoin 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, 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 Description copied from interface:ISVNClientRetrieve either merged or eligible-to-be-merged revisions.- Specified by:
getMergeinfoLogin 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
-
getMergeinfoLog
public 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 Description copied from interface:ISVNClientRetrieve either merged or eligible-to-be-merged revisions.- Specified by:
getMergeinfoLogin interfaceISVNClient- Parameters:
kind- kind of revisions to receivepathOrUrl- target of mergepegRevision- peg rev for pathOrUrlmergeSourceUrl- the source of the mergesrcPegRevision- peg rev for mergeSourceUrlsrcEndRevision- 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
-
diff
public 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 - Specified by:
diffin interfaceISVNClient- Throws:
ClientException
-
diff
public 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 - Specified by:
diffin interfaceISVNClient- Throws:
ClientException
-
diff
public void diff(java.lang.String target1, Revision revision1, java.lang.String target2, Revision revision2, java.lang.String relativeToDir, java.io.OutputStream outStream, 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 Description copied from interface:ISVNClientDisplay the differences between two paths- Specified by:
diffin interfaceISVNClient- Parameters:
target1- first path or urlrevision1- first revisiontarget2- second path or urlrevision2- second revisionrelativeToDir- index path is relative to this pathdepth- 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(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 - Specified by:
diffin interfaceISVNClient- Throws:
ClientException
-
diff
public void diff(java.lang.String target1, Revision revision1, java.lang.String target2, Revision revision2, java.lang.String relativeToDir, java.io.OutputStream outStream, Depth depth, java.util.Collection<java.lang.String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds, boolean ignoreProps, boolean propsOnly) throws ClientException Description copied from interface:ISVNClientDisplay the differences between two paths- Specified by:
diffin interfaceISVNClient- Parameters:
target1- first path or urlrevision1- first revisiontarget2- second path or urlrevision2- second revisionrelativeToDir- index path is relative to this pathdepth- 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(java.lang.String target, Revision pegRevision, Revision startRevision, Revision endRevision, java.lang.String relativeToDir, java.io.OutputStream outStream, 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 Description copied from interface:ISVNClientDisplay the differences between two paths.- Specified by:
diffin interfaceISVNClient- Parameters:
target- path or urlpegRevision- revision tointerpret targetstartRevision- first Revision to compareendRevision- second Revision to comparerelativeToDir- index path is relative to this pathdepth- 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(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 - Specified by:
diffin interfaceISVNClient- Throws:
ClientException
-
diff
public void diff(java.lang.String target, Revision pegRevision, Revision startRevision, Revision endRevision, java.lang.String relativeToDir, java.io.OutputStream outStream, Depth depth, java.util.Collection<java.lang.String> changelists, boolean ignoreAncestry, boolean noDiffDeleted, boolean force, boolean copiesAsAdds, boolean ignoreProps, boolean propsOnly) throws ClientException Description copied from interface:ISVNClientDisplay the differences between two paths.- Specified by:
diffin interfaceISVNClient- Parameters:
target- path or urlpegRevision- revision tointerpret targetstartRevision- first Revision to compareendRevision- second Revision to comparerelativeToDir- index path is relative to this pathdepth- 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
-
diffSummarize
public 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 Description copied from interface:ISVNClientProduce a diff summary which lists the items changed between path and revision pairs.- Specified by:
diffSummarizein 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(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 Description copied from interface:ISVNClientProduce a diff summary which lists the items changed between path and revision pairs.- Specified by:
diffSummarizein interfaceISVNClient- Parameters:
target- Path or URL.pegRevision- Revision at which to interprettarget. IfRevision.Kind.unspecifiedornull, behave identically toISVNClient.diffSummarize(String, Revision, String, Revision, Depth, Collection, boolean, DiffSummaryCallback), usingpathfor both of that method's targets.startRevision- Beginning of range for comparsion oftarget.endRevision- End of range for comparsion oftarget.depth- how deep to recurse.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(java.lang.String path, Revision revision, Revision pegRevision, Depth depth, java.util.Collection<java.lang.String> changelists, ProplistCallback callback) throws ClientException Description copied from interface:ISVNClientRetrieves the properties of an item- Specified by:
propertiesin 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(java.lang.String path, Revision revision, Revision pegRevision, Depth depth, java.util.Collection<java.lang.String> changelists, InheritedProplistCallback callback) throws ClientException Description copied from interface:ISVNClientRetrieves the properties of an item, including inherited properties.- Specified by:
propertiesin 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(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 Description copied from interface:ISVNClientSets one property of an item with a String value- Specified by:
propertySetLocalin interfaceISVNClient- Parameters:
paths- paths of the itemsname- name of the propertyvalue- new value of the property. Set value tonullto 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(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- Specified by:
propertySetRemotein interfaceISVNClient- Throws:
ClientException
-
revProperty
public byte[] revProperty(java.lang.String path, java.lang.String name, Revision rev) throws ClientException Description copied from interface:ISVNClientRetrieve one revsision property of one item- Specified by:
revPropertyin interfaceISVNClient- Parameters:
path- path of the itemname- name of the propertyrev- revision to retrieve- Returns:
- the Property
- Throws:
ClientException
-
revProperties
public java.util.Map<java.lang.String,byte[]> revProperties(java.lang.String path, Revision rev) throws ClientException Description copied from interface:ISVNClientRetrieve all revsision properties of one item- Specified by:
revPropertiesin interfaceISVNClient- Parameters:
path- path of the itemrev- revision to retrieve- Returns:
- the Properties
- Throws:
ClientException
-
setRevProperty
public void setRevProperty(java.lang.String path, java.lang.String name, Revision rev, java.lang.String value, java.lang.String originalValue, boolean force) throws ClientException Description copied from interface:ISVNClientset one revsision property of one item- Specified by:
setRevPropertyin 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(java.lang.String path, java.lang.String name, Revision revision, Revision pegRevision) throws ClientException - Specified by:
propertyGetin interfaceISVNClient- Throws:
ClientException
-
propertyGet
public byte[] propertyGet(java.lang.String path, java.lang.String name, Revision revision, Revision pegRevision, java.util.Collection<java.lang.String> changelists) throws ClientException Description copied from interface:ISVNClientRetrieve one property of one item- Specified by:
propertyGetin 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(java.lang.String path, Revision revision, Revision pegRevision) throws ClientException Description copied from interface:ISVNClientRetrieve the content of a file- Specified by:
fileContentin 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 void streamFileContent(java.lang.String path, Revision revision, Revision pegRevision, java.io.OutputStream stream) throws ClientException Description copied from interface:ISVNClientWrite the file's content to the specified output stream. If you need an InputStream, use a PipedInputStream/PipedOutputStream combination.- Specified by:
streamFileContentin 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:
-
PipedOutputStreamPipedInputStream
-
relocate
public void relocate(java.lang.String from, java.lang.String to, java.lang.String path, boolean ignoreExternals) throws ClientException Description copied from interface:ISVNClientRewrite the url's in the working copy- Specified by:
relocatein interfaceISVNClient- Parameters:
from- old urlto- new urlpath- working copy pathignoreExternals- if externals are ignored during relocate- Throws:
ClientException
-
blame
public void blame(java.lang.String path, Revision pegRevision, Revision revisionStart, Revision revisionEnd, boolean ignoreMimeType, boolean includeMergedRevisions, BlameCallback callback) throws ClientException Description copied from interface:ISVNClientRetrieve the content together with the author, the revision and the date of the last change of each line- Specified by:
blamein 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 informationcallback- callback to receive the file content and the other information- Throws:
ClientException
-
getClientException
- Throws:
ClientException
-
setConfigDirectory
Description copied from interface:ISVNClientSet 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-nullvalue will override lookup of configuration in the registry.- Specified by:
setConfigDirectoryin interfaceISVNClient- Parameters:
configDir- Path of the directory, ornullfor the platform's default.- Throws:
ClientException
-
getConfigDirectory
Description copied from interface:ISVNClientGet the configuration directory- Specified by:
getConfigDirectoryin interfaceISVNClient- Returns:
- the directory
- Throws:
ClientException
-
cancelOperation
Description copied from interface:ISVNClientcancel the active operation- Specified by:
cancelOperationin interfaceISVNClient- Throws:
ClientException
-
addToChangelist
public void addToChangelist(java.util.Set<java.lang.String> paths, java.lang.String changelist, Depth depth, java.util.Collection<java.lang.String> changelists) throws ClientException Description copied from interface:ISVNClientAdd paths to a changelist- Specified by:
addToChangelistin 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(java.util.Set<java.lang.String> paths, Depth depth, java.util.Collection<java.lang.String> changelists) throws ClientException Description copied from interface:ISVNClientRemove paths from a changelist- Specified by:
removeFromChangelistsin interfaceISVNClient- Parameters:
paths- paths to remove from the changelistdepth- the depth to recursechangelists- changelists to filter by- Throws:
ClientException
-
getChangelists
public void getChangelists(java.lang.String rootPath, java.util.Collection<java.lang.String> changelists, Depth depth, ChangelistCallback callback) throws ClientException Description copied from interface:ISVNClientRecursively get the paths which belong to a changelist- Specified by:
getChangelistsin interfaceISVNClient- Parameters:
rootPath- the wc path under which to checkchangelists- the changelists to look underdepth- the depth to recursecallback- the callback to return the changelists through- Throws:
ClientException
-
lock
public void lock(java.util.Set<java.lang.String> path, java.lang.String comment, boolean force) throws ClientException Description copied from interface:ISVNClientLock a working copy item- Specified by:
lockin interfaceISVNClient- Parameters:
path- path of the itemforce- break an existing lock- Throws:
ClientException
-
unlock
Description copied from interface:ISVNClientUnlock a working copy item- Specified by:
unlockin interfaceISVNClient- Parameters:
path- path of the itemforce- break an existing lock- Throws:
ClientException
-
info2
public void info2(java.lang.String pathOrUrl, Revision revision, Revision pegRevision, Depth depth, java.util.Collection<java.lang.String> changelists, InfoCallback callback) throws ClientException Description copied from interface:ISVNClientRetrieve information about repository or working copy items.- Specified by:
info2in 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 recursechangelists- if non-null, filter paths using changelistscallback- a callback to receive the infos retrieved- Throws:
ClientException
-
getVersionInfo
public java.lang.String getVersionInfo(java.lang.String path, java.lang.String trailUrl, boolean lastChanged) throws ClientException Description copied from interface:ISVNClientProduce a compact "version number" for a working copy- Specified by:
getVersionInfoin 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:ISVNClientRecursively upgrade a working copy to a new metadata storage format.- Specified by:
upgradein interfaceISVNClient- Parameters:
path- path of the working copy- Throws:
ClientException
-
patch
public void patch(java.lang.String patchPath, java.lang.String targetPath, boolean dryRun, int stripCount, boolean reverse, boolean ignoreWhitespace, boolean removeTempfiles, PatchCallback callback) throws ClientException Description copied from interface:ISVNClientApply a unidiff patch.- Specified by:
patchin 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
-
getSVNDepth
-
getDepth
-
getStatus
- Throws:
SVNException
-
getLock
-
getLongDate
private static long getLongDate(java.util.Date date) -
getTarget
-
getTarget
-
getStatusKind
-
getNodeKind
-
getSVNRevision
-
getSVNProperties
private SVNProperties getSVNProperties(java.util.Map<java.lang.String, java.lang.String> revpropTable) -
getSvnCommitItem
-
getFilePath
private java.lang.String getFilePath(java.io.File path) -
getUrlString
-
getStatusReceiver
-
getCommitHandler
-
getSvnRevisionRanges
private java.util.Collection<SvnRevisionRange> getSvnRevisionRanges(java.util.List<RevisionRange> ranges) -
getSvnRevisionRange
-
getRevisionPropertiesNames
private java.lang.String[] getRevisionPropertiesNames(java.util.Set<java.lang.String> revProps) -
getLogEntryReceiver
-
getChangePaths
private java.util.Set<ChangePath> getChangePaths(java.util.Map<java.lang.String, SVNLogEntryPath> changedPaths) -
getChangePathAction
-
getProperties
-
getRevisionProperties
private static java.util.Map<java.lang.String,java.lang.String> getRevisionProperties(SVNProperties revisionProperties) -
getSVNPropertiesReceiver
-
getInheritedProperties
private static java.util.Collection<InheritedProplistCallback.InheritedItem> getInheritedProperties(java.util.List<SvnInheritedProperties> inheritedProperties) -
getSVNConflictChoice
-
getProperty
private byte[] getProperty(java.lang.String path, java.lang.String name, Revision rev, Revision pegRevision, boolean revisionProperties, java.util.Collection<java.lang.String> changelists) throws ClientException - Throws:
ClientException
-
getDiffSummary
-
getDiffKind
-
getDiffStatusReceiver
-
getCommitInfoReceiver
-
fillLocalAndRemoteTargets
private void fillLocalAndRemoteTargets(java.util.Set<java.lang.String> path, java.util.Set<java.lang.String> localPaths, java.util.Set<java.lang.String> remoteUrls) -
getCommitInfo
private CommitInfo getCommitInfo(SVNCommitInfo commitInfo, SVNURL repositoryRoot) throws java.text.ParseException - Throws:
java.text.ParseException
-
getErrorMessageString
-
getSvnCopySource
-
mkdirLocal
private void mkdirLocal(java.util.Set<java.lang.String> localPaths, boolean makeParents) throws ClientException - Throws:
ClientException
-
mkdirRemote
private void mkdirRemote(java.util.Set<java.lang.String> remoteUrls, boolean makeParents, java.util.Map<java.lang.String, java.lang.String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientException- Throws:
ClientException
-
removeLocal
private void removeLocal(java.util.Set<java.lang.String> localPaths, boolean force, boolean keepLocal) throws ClientException - Throws:
ClientException
-
removeRemote
private void removeRemote(java.util.Set<java.lang.String> remoteUrls, java.util.Map<java.lang.String, java.lang.String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientException- Throws:
ClientException
-
moveLocal
private void moveLocal(java.util.Set<java.lang.String> srcPaths, java.lang.String destPath, boolean force, boolean moveAsChild, boolean makeParents, boolean metadataOnly, boolean allowMixRev) throws ClientException - Throws:
ClientException
-
moveRemote
private void moveRemote(java.util.Set<java.lang.String> srcPaths, java.lang.String destPath, boolean moveAsChild, boolean makeParents, java.util.Map<java.lang.String, java.lang.String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientException- Throws:
ClientException
-
copyLocal
private void copyLocal(java.util.List<CopySource> localSources, java.lang.String destPath, boolean copyAsChild, boolean makeParents, boolean ignoreExternals) throws ClientException - Throws:
ClientException
-
copyRemote
private void copyRemote(java.util.List<CopySource> remoteSources, java.lang.String destPath, boolean copyAsChild, boolean makeParents, java.util.Map<java.lang.String, java.lang.String> revpropTable, CommitMessageCallback handler, CommitCallback callback) throws ClientException- Throws:
ClientException
-
getInfoReceiver
-
getInfo
- Throws:
ClientException
-
getConflictDescriptors
private java.util.Set<ConflictDescriptor> getConflictDescriptors(java.util.Collection<SVNConflictDescription> conflicts) throws ClientException - Throws:
ClientException
-
getChecksum
-
getChecksumKind
-
getScheduleKind
-
getMergeinfo
-
getRevisionRange
-
getAnnotateItemReceiver
-
getConflictHandler
-
getConflictDescription
private ConflictDescriptor getConflictDescription(SVNConflictDescription conflictDescription) throws ClientException - Throws:
ClientException
-
getConflictDescriptorOperation
-
getConflictVersion
-
getSVNConflictResult
-
getConflictDescriptorAction
-
getConflictDescriptorReason
-
getClientNotifyInformationAction
private static ClientNotifyInformation.Action getClientNotifyInformationAction(SVNEventAction action) -
getConflictDescriptorKind
private ConflictDescriptor.Kind getConflictDescriptorKind(SVNConflictDescription conflictDescription) -
getFile
private java.io.File getFile(java.lang.String path) -
getDirEntryReceiver
-
getDirEntry
-
getClientNotifyInformation
static ClientNotifyInformation getClientNotifyInformation(java.lang.String pathPrefix, SVNEvent event, java.lang.String path) -
getClientNotifyInformationLockStatus
private static ClientNotifyInformation.LockStatus getClientNotifyInformationLockStatus(SVNStatusType lockStatus) -
getClientNotifyInformationStatus
private static ClientNotifyInformation.Status getClientNotifyInformationStatus(SVNStatusType status) -
getFileFilter
-
getDiffOptions
-
getPathPrefix
private java.lang.String getPathPrefix(java.lang.String pathOrUrl) -
getPathPrefix
private java.lang.String getPathPrefix(java.util.Collection<?> pathsOrUrls) -
getPathPrefix
private java.lang.String getPathPrefix(java.util.Collection<?> pathsOrUrls, java.lang.String destPath) -
getPathPrefix
private java.lang.String getPathPrefix(java.lang.String pathOrUrl1, java.lang.String pathOrUrl2) -
combinePathPrefixes
private java.lang.String combinePathPrefixes(java.lang.String pathPrefix1, java.lang.String pathPrefix2) -
updateSvnOperationsFactory
private void updateSvnOperationsFactory() -
versionString
static java.lang.String versionString() -
versionMajor
static int versionMajor() -
versionMinor
static int versionMinor() -
versionMicro
static int versionMicro() -
versionRevisionNumber
static long versionRevisionNumber() -
throwSvnException
- Throws:
SVNException
-
resetLog
private void resetLog() -
beforeOperation
private void beforeOperation() -
afterOperation
private void afterOperation() -
getVersionExtended
- Specified by:
getVersionExtendedin interfaceISVNClient- Returns:
- Extended version information about the underlying native libraries and operating system.
-