org.tigris.subversion.javahl

Class SVNClientSynchronized

public class SVNClientSynchronized extends Object implements SVNClientInterface

This class provides a threadsafe wrapped for SVNClient
Constructor Summary
SVNClientSynchronized()
Create our worker
Method Summary
voidadd(String path, boolean recurse)
Adds a file to the repository.
voidadd(String path, boolean recurse, boolean force)
Adds a file to the repository.
byte[]blame(String path, Revision revisionStart, Revision revisionEnd)
Return for each line of the file, the author and the revision of the last together with the content.
voidblame(String path, Revision revisionStart, Revision revisionEnd, BlameCallback callback)
Retrieve the content together with the author, the revision and the date of the last change of each line
voidblame(String path, Revision pegRevision, Revision revisionStart, Revision revisionEnd, BlameCallback callback)
Retrieve the content together with the author, the revision and the date of the last change of each line
voidcancelOperation()
cancel the active operation
longcheckout(String moduleName, String destPath, Revision revision, Revision pegRevision, boolean recurse, boolean ignoreExternals)
Executes a revision checkout.
longcheckout(String moduleName, String destPath, Revision revision, boolean recurse)
Executes a revision checkout.
voidcleanup(String path)
Recursively cleans up a local directory, finishing any incomplete operations, removing lockfiles, etc.
longcommit(String[] path, String message, boolean recurse)
Commits changes to the repository.
longcommit(String[] path, String message, boolean recurse, boolean noUnlock)
Commits changes to the repository.
voidcommitMessageHandler(CommitMessage messageHandler)
Sets the commit message handler.
voidcopy(String srcPath, String destPath, String message, Revision revision)
Copies a versioned file with the history preserved.
voiddiff(String target1, Revision revision1, String target2, Revision revision2, String outFileName, boolean recurse)
Display the differences between two paths
voiddiff(String target1, Revision revision1, String target2, Revision revision2, String outFileName, boolean recurse, boolean ignoreAncestry, boolean noDiffDeleted, boolean force)
Display the differences between two paths
voiddiff(String target, Revision pegRevision, Revision startRevision, Revision endRevision, String outFileName, boolean recurse, boolean ignoreAncestry, boolean noDiffDeleted, boolean force)
Display the differences between two paths
voiddispose()
release the native peer (should not depend on finalize)
longdoExport(String srcPath, String destPath, Revision revision, boolean force)
Exports the contents of either a subversion repository into a 'clean' directory (meaning a directory with no administrative directories).
longdoExport(String srcPath, String destPath, Revision revision, Revision pegRevision, boolean force, boolean ignoreExternals, boolean recurse, String nativeEOL)
Exports the contents of either a subversion repository into a 'clean' directory (meaning a directory with no administrative directories).
voiddoImport(String path, String url, String message, boolean recurse)
Import a file or directory into a repository directory at head.
longdoSwitch(String path, String url, Revision revision, boolean recurse)
Update local copy to mirror a new url.
byte[]fileContent(String path, Revision revision)
Retrieve the content of a file
byte[]fileContent(String path, Revision revision, Revision pegRevision)
Retrieve the content of a file
StringgetAdminDirectoryName()
StringgetConfigDirectory()
Get the configuration directory
StringgetLastPath()
Returns the last destination path submitted.
VersiongetVersion()
StringgetVersionInfo(String path, String trailUrl, boolean lastChanged)
Produce a compact "version number" for a working copy
Infoinfo(String path)
Retrieves the working copy information for an item
Info2[]info2(String pathOrUrl, Revision revision, Revision pegRevision, boolean recurse)
Retrieve information about repository or working copy items.
booleanisAdminDirectory(String name)
DirEntry[]list(String url, Revision revision, boolean recurse)
Lists the directory entries of an url on the server.
DirEntry[]list(String url, Revision revision, Revision pegRevision, boolean recurse)
Lists the directory entries of an url on the server.
voidlock(String[] path, String comment, boolean force)
Lock a working copy item
LogMessage[]logMessages(String path, Revision revisionStart, Revision revisionEnd)
Retrieve the log messages for an item
LogMessage[]logMessages(String path, Revision revisionStart, Revision revisionEnd, boolean stopOnCopy)
Retrieve the log messages for an item
LogMessage[]logMessages(String path, Revision revisionStart, Revision revisionEnd, boolean stopOnCopy, boolean discoverPath)
Retrieve the log messages for an item
LogMessage[]logMessages(String path, Revision revisionStart, Revision revisionEnd, boolean stopOnCopy, boolean discoverPath, long limit)
Retrieve the log messages for an item
voidmerge(String path1, Revision revision1, String path2, Revision revision2, String localPath, boolean force, boolean recurse)
Merge changes from two paths into a new local path.
voidmerge(String path1, Revision revision1, String path2, Revision revision2, String localPath, boolean force, boolean recurse, boolean ignoreAncestry, boolean dryRun)
Merge changes from two paths into a new local path.
voidmerge(String path, Revision pegRevision, Revision revision1, Revision revision2, String localPath, boolean force, boolean recurse, boolean ignoreAncestry, boolean dryRun)
Merge changes from two paths into a new local path.
voidmkdir(String[] path, String message)
Creates a directory directly in a repository or creates a directory on disk and schedules it for addition.
voidmove(String srcPath, String destPath, String message, Revision revision, boolean force)
Moves or renames a file.
voidmove(String srcPath, String destPath, String message, boolean force)
Moves or renames a file.
voidnotification(Notify notify)
Sets the notification callback used to send processing information back to the calling program.
voidnotification2(Notify2 notify)
Sets the notification callback used to send processing information back to the calling program.
voidpassword(String password)
Sets the password used for authification.
PropertyData[]properties(String path)
Retrieves the properties of an item
PropertyData[]properties(String path, Revision revision)
Retrieves the properties of an item
PropertyData[]properties(String path, Revision revision, Revision pegRevision)
Retrieves the properties of an item
voidpropertyCreate(String path, String name, String value, boolean recurse)
Create and sets one property of an item with a String value
voidpropertyCreate(String path, String name, String value, boolean recurse, boolean force)
Create and sets one property of an item with a String value
voidpropertyCreate(String path, String name, byte[] value, boolean recurse)
Create and sets one property of an item with a byte array value
voidpropertyCreate(String path, String name, byte[] value, boolean recurse, boolean force)
Create and sets one property of an item with a byte array value
PropertyDatapropertyGet(String path, String name)
Retrieve one property of one iten
PropertyDatapropertyGet(String path, String name, Revision revision)
Retrieve one property of one iten
PropertyDatapropertyGet(String path, String name, Revision revision, Revision pegRevision)
Retrieve one property of one iten
voidpropertyRemove(String path, String name, boolean recurse)
Remove one property of an item.
voidpropertySet(String path, String name, String value, boolean recurse)
Sets one property of an item with a String value
voidpropertySet(String path, String name, String value, boolean recurse, boolean force)
Sets one property of an item with a String value
voidpropertySet(String path, String name, byte[] value, boolean recurse)
Sets one property of an item with a byte array value
voidpropertySet(String path, String name, byte[] value, boolean recurse, boolean force)
Sets one property of an item with a byte array value
voidrelocate(String from, String to, String path, boolean recurse)
Rewrite the url's in the working copy
voidremove(String[] path, String message, boolean force)
Sets a file for deletion.
voidresolved(String path, boolean recurse)
Removes the 'conflicted' state on a file.
voidrevert(String path, boolean recurse)
Reverts a file to a pristine state.
PropertyData[]revProperties(String path, Revision rev)
Retrieve all revsision properties of one item
PropertyDatarevProperty(String path, String name, Revision rev)
Retrieve one revsision property of one item
voidsetConfigDirectory(String configDir)
Set directory for the configuration information
voidsetPrompt(PromptUserPassword prompt)
Register callback interface to supply username and password on demand
voidsetRevProperty(String path, String name, Revision rev, String value, boolean force)
set one revsision property of one item
StatussingleStatus(String path, boolean onServer)
Returns the status of a single file in the path.
Status[]status(String path, boolean descend, boolean onServer, boolean getAll)
List a directory or file of the working copy.
Status[]status(String path, boolean descend, boolean onServer, boolean getAll, boolean noIgnore)
List a directory or file of the working copy.
Status[]status(String path, boolean descend, boolean onServer, boolean getAll, boolean noIgnore, boolean ignoreExternals)
List a directory or file of the working copy.
voidstreamFileContent(String path, Revision revision, Revision pegRevision, int bufferSize, OutputStream stream)
Write the file's content to the specified output stream.
voidunlock(String[] path, boolean force)
Unlock a working copy item
longupdate(String path, Revision revision, boolean recurse)
Updates the directory or file from repository
long[]update(String[] path, Revision revision, boolean recurse, boolean ignoreExternals)
Updates the directories or files from repository
voidusername(String username)
Sets the username used for authentification.

Constructor Detail

SVNClientSynchronized

public SVNClientSynchronized()
Create our worker

Method Detail

add

public void add(String path, boolean recurse)
Adds a file to the repository.

Parameters: path path to be added. recurse recurse into subdirectories

Throws: ClientException

add

public void add(String path, boolean recurse, boolean force)
Adds a file to the repository.

Parameters: path path to be added. recurse recurse into subdirectories force if adding a directory and recurse true and path is a directory, all not already managed files are added.

Throws: ClientException

Since: 1.2

blame

public byte[] blame(String path, Revision revisionStart, Revision revisionEnd)

Deprecated:

Return for each line of the file, the author and the revision of the last together with the content.

Parameters: path the path revisionStart the first revision to show revisionEnd the last revision to show

Returns: the content together with author and revision of last change

Throws: ClientException

blame

public void blame(String path, Revision revisionStart, Revision revisionEnd, BlameCallback callback)
Retrieve the content together with the author, the revision and the date of the last change of each line

Parameters: path the path revisionStart the first revision to show revisionEnd the last revision to show callback callback to receive the file content and the other information

Throws: ClientException

blame

public void blame(String path, Revision pegRevision, Revision revisionStart, Revision revisionEnd, BlameCallback callback)
Retrieve the content together with the author, the revision and the date of the last change of each line

Parameters: path the path pegRevision the revision to interpret the path revisionStart the first revision to show revisionEnd the last revision to show callback callback to receive the file content and the other information

Throws: ClientException

Since: 1.2

cancelOperation

public void cancelOperation()
cancel the active operation

Throws: ClientException

checkout

public long checkout(String moduleName, String destPath, Revision revision, Revision pegRevision, boolean recurse, boolean ignoreExternals)
Executes a revision checkout.

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 path recurse whether you want it to checkout files recursively. ignoreExternals if externals are ignored during checkout

Throws: ClientException

Since: 1.2

checkout

public long checkout(String moduleName, String destPath, Revision revision, boolean recurse)
Executes a revision checkout.

Parameters: moduleName name of the module to checkout. destPath destination directory for checkout. revision the revision to checkout. recurse whether you want it to checkout files recursively.

Throws: ClientException

cleanup

public void cleanup(String path)
Recursively cleans up a local directory, finishing any incomplete operations, removing lockfiles, etc.

Parameters: path a local directory.

Throws: ClientException

commit

public long commit(String[] path, String message, boolean recurse)
Commits changes to the repository.

Parameters: path files to commit. message log message. recurse whether the operation should be done recursively.

Returns: Returns a long representing the revision. It returns a -1 if the revision number is invalid.

Throws: ClientException

commit

public long commit(String[] path, String message, boolean recurse, boolean noUnlock)
Commits changes to the repository.

Parameters: path files to commit. message log message. recurse whether the operation should be done recursively. noUnlock do remove any locks

Returns: Returns a long representing the revision. It returns a -1 if the revision number is invalid.

Throws: ClientException

Since: 1.2

commitMessageHandler

public void commitMessageHandler(CommitMessage messageHandler)
Sets the commit message handler. This allows more complex commit message with the list of the elements to be commited as input.

Parameters: messageHandler callback for entering commit messages if this is set the message parameter is ignored.

copy

public void copy(String srcPath, String destPath, String message, Revision revision)
Copies a versioned file with the history preserved.

Parameters: srcPath source path or url destPath destination path or url message commit message if destPath is an url revision source revision

Throws: ClientException

diff

public void diff(String target1, Revision revision1, String target2, Revision revision2, String outFileName, boolean recurse)
Display the differences between two paths

Parameters: target1 first path or url revision1 first revision target2 second path or url revision2 second revision outFileName file name where difference are written recurse traverse into subdirectories

Throws: ClientException

diff

public void diff(String target1, Revision revision1, String target2, Revision revision2, String outFileName, boolean recurse, boolean ignoreAncestry, boolean noDiffDeleted, boolean force)
Display the differences between two paths

Parameters: target1 first path or url revision1 first revision target2 second path or url revision2 second revision outFileName file name where difference are written recurse traverse into subdirectories ignoreAncestry ignore if files are not related noDiffDeleted no output on deleted files force diff even on binary files

Throws: ClientException

Since: 1.2

diff

public void diff(String target, Revision pegRevision, Revision startRevision, Revision endRevision, String outFileName, boolean recurse, boolean ignoreAncestry, boolean noDiffDeleted, boolean force)
Display the differences between two paths

Parameters: target path or url pegRevision revision tointerpret target startRevision first Revision to compare endRevision second Revision to compare outFileName file name where difference are written recurse traverse into subdirectories ignoreAncestry ignore if files are not related noDiffDeleted no output on deleted files force diff even on binary files

Throws: ClientException

Since: 1.2

dispose

public void dispose()
release the native peer (should not depend on finalize)

doExport

public long doExport(String srcPath, String destPath, Revision revision, boolean force)
Exports the contents of either a subversion repository into a 'clean' directory (meaning a directory with no administrative directories).

Parameters: srcPath the url of the repository path to be exported destPath a destination path that must not already exist. revision the revsion to be exported force set if it is ok to overwrite local files

Throws: ClientException

doExport

public long doExport(String srcPath, String destPath, Revision revision, Revision pegRevision, boolean force, boolean ignoreExternals, boolean recurse, String nativeEOL)
Exports the contents of either a subversion repository into a 'clean' directory (meaning a directory with no administrative directories).

Parameters: srcPath the url of the repository path to be exported destPath a destination path that must not already exist. revision the revsion to be exported pegRevision the revision to interpret srcPath force set if it is ok to overwrite local files ignoreExternals ignore external during export recurse recurse to subdirectories nativeEOL which EOL characters to use during export

Throws: ClientException

Since: 1.2

doImport

public void doImport(String path, String url, String message, boolean recurse)
Import a file or directory into a repository directory at head.

Parameters: path the local path url the target url message the log message. recurse traverse into subdirectories

Throws: ClientException

doSwitch

public long doSwitch(String path, String url, Revision revision, boolean recurse)
Update local copy to mirror a new url.

Parameters: path the working copy path url the new url for the working copy revision the new base revision of working copy recurse traverse into subdirectories

Throws: ClientException

fileContent

public byte[] fileContent(String path, Revision revision)
Retrieve the content of a file

Parameters: path the path of the file revision the revision to retrieve

Returns: the content as byte array

Throws: ClientException

fileContent

public byte[] fileContent(String path, Revision revision, Revision pegRevision)
Retrieve the content of a file

Parameters: path the path of the file revision the revision to retrieve pegRevision the revision to interpret path

Returns: the content as byte array

Throws: ClientException

Since: 1.2

getAdminDirectoryName

public String getAdminDirectoryName()

Returns: The name of the working copy's administrative directory, which is usually .svn.

Since: 1.3

UNKNOWN: Instructions on changing this as a work-around for the behavior of ASP.Net on Windows.

getConfigDirectory

public String getConfigDirectory()
Get the configuration directory

Returns: the directory

Throws: ClientException

getLastPath

public String getLastPath()

Deprecated:

Returns the last destination path submitted.

Returns: path in Subversion format.

getVersion

public Version getVersion()

Returns: Version information about the underlying native libraries.

getVersionInfo

public String getVersionInfo(String path, String trailUrl, boolean lastChanged)
Produce a compact "version number" for a working copy

Parameters: path path of the working copy trailUrl to detect switches of the whole working copy lastChanged last changed rather than current revisions

Returns: the compact "version number"

Throws: ClientException

Since: 1.2

info

public Info info(String path)
Retrieves the working copy information for an item

Parameters: path path of the item

Returns: the information object

Throws: ClientException

info2

public Info2[] info2(String pathOrUrl, Revision revision, Revision pegRevision, boolean recurse)
Retrieve information about repository or working copy items.

Parameters: pathOrUrl the path or the url of the item revision the revision of the item to return pegRevision the revision to interpret pathOrUrl recurse flag if to recurse, if the item is a directory

Returns: the information objects

Since: 1.2

isAdminDirectory

public boolean isAdminDirectory(String name)

Parameters: name The name of the directory to compare.

Returns: Whether name is that of a working copy administrative directory.

Since: 1.3

list

public DirEntry[] list(String url, Revision revision, boolean recurse)
Lists the directory entries of an url on the server.

Parameters: url the url to list revision the revision to list recurse recurse into subdirectories

Returns: Array of DirEntry objects.

list

public DirEntry[] list(String url, Revision revision, Revision pegRevision, boolean recurse)
Lists the directory entries of an url on the server.

Parameters: url the url to list revision the revision to list pegRevision the revision to interpret url recurse recurse into subdirectories

Returns: Array of DirEntry objects.

Since: 1.2

lock

public void lock(String[] path, String comment, boolean force)
Lock a working copy item

Parameters: path path of the item comment force break an existing lock

Throws: ClientException

Since: 1.2

logMessages

public LogMessage[] logMessages(String path, Revision revisionStart, Revision revisionEnd)
Retrieve the log messages for an item

Parameters: path path or url to get the log message for. revisionStart first revision to show revisionEnd last revision to show

Returns: array of LogMessages

logMessages

public LogMessage[] logMessages(String path, Revision revisionStart, Revision revisionEnd, boolean stopOnCopy)
Retrieve the log messages for an item

Parameters: path path or url to get the log message for. revisionStart first revision to show revisionEnd last revision to show stopOnCopy do not continue on copy operations

Returns: array of LogMessages

logMessages

public LogMessage[] logMessages(String path, Revision revisionStart, Revision revisionEnd, boolean stopOnCopy, boolean discoverPath)
Retrieve the log messages for an item

Parameters: path path or url to get the log message for. revisionStart first revision to show revisionEnd last revision to show stopOnCopy do not continue on copy operations discoverPath returns the paths of the changed items in the returned objects

Returns: array of LogMessages

logMessages

public LogMessage[] logMessages(String path, Revision revisionStart, Revision revisionEnd, boolean stopOnCopy, boolean discoverPath, long limit)
Retrieve the log messages for an item

Parameters: path path or url to get the log message for. revisionStart first revision to show revisionEnd last revision to show stopOnCopy do not continue on copy operations discoverPath returns the paths of the changed items in the returned objects limit limit the number of log messages (if 0 or less no limit)

Returns: array of LogMessages

Since: 1.2

merge

public void merge(String path1, Revision revision1, String path2, Revision revision2, String localPath, boolean force, boolean recurse)
Merge changes from two paths into a new local path.

Parameters: path1 first path or url revision1 first revision path2 second path or url revision2 second revision localPath target local path force overwrite local changes recurse traverse into subdirectories

Throws: ClientException

merge

public void merge(String path1, Revision revision1, String path2, Revision revision2, String localPath, boolean force, boolean recurse, boolean ignoreAncestry, boolean dryRun)
Merge changes from two paths into a new local path.

Parameters: path1 first path or url revision1 first revision path2 second path or url revision2 second revision localPath target local path force overwrite local changes recurse traverse into subdirectories ignoreAncestry ignore if files are not related dryRun do not change anything

Throws: ClientException

Since: 1.2

merge

public void merge(String path, Revision pegRevision, Revision revision1, Revision revision2, String localPath, boolean force, boolean recurse, boolean ignoreAncestry, boolean dryRun)
Merge changes from two paths into a new local path.

Parameters: path path or url pegRevision revision to interpret path revision1 first revision revision2 second revision localPath target local path force overwrite local changes recurse traverse into subdirectories ignoreAncestry ignore if files are not related dryRun do not change anything

Throws: ClientException

Since: 1.2

mkdir

public void mkdir(String[] path, String message)
Creates a directory directly in a repository or creates a directory on disk and schedules it for addition.

Parameters: path directories to be created message commit message to used if path contains urls

Throws: ClientException

move

public void move(String srcPath, String destPath, String message, Revision revision, boolean force)
Moves or renames a file.

Parameters: srcPath source path or url destPath destination path or url message commit message if destPath is an url revision source revision force even with local modifications.

Throws: ClientException

Since: 1.2

move

public void move(String srcPath, String destPath, String message, boolean force)
Moves or renames a file.

Parameters: srcPath source path or url destPath destination path or url message commit message if destPath is an url force even with local modifications.

Throws: ClientException

notification

public void notification(Notify notify)

Deprecated: use notification2 instead

Sets the notification callback used to send processing information back to the calling program.

Parameters: notify listener that the SVN library should call on many file operations.

notification2

public void notification2(Notify2 notify)
Sets the notification callback used to send processing information back to the calling program.

Parameters: notify listener that the SVN library should call on many file operations.

Since: 1.2

password

public void password(String password)
Sets the password used for authification.

Parameters: password the password

properties

public PropertyData[] properties(String path)
Retrieves the properties of an item

Parameters: path the path of the item

Returns: array of property objects

properties

public PropertyData[] properties(String path, Revision revision)
Retrieves the properties of an item

Parameters: path the path of the item revision the revision of the item

Returns: array of property objects

Since: 1.2

properties

public PropertyData[] properties(String path, Revision revision, Revision pegRevision)
Retrieves the properties of an item

Parameters: path the path of the item revision the revision of the item pegRevision the revision to interpret path

Returns: array of property objects

Since: 1.2

propertyCreate

public void propertyCreate(String path, String name, String value, boolean recurse)
Create and sets one property of an item with a String value

Parameters: path path of the item name name of the property value new value of the property recurse set property also on the subdirectories

Throws: ClientException

propertyCreate

public void propertyCreate(String path, String name, String value, boolean recurse, boolean force)
Create and sets one property of an item with a String value

Parameters: path path of the item name name of the property value new value of the property recurse set property also on the subdirectories force do not check if the value is valid

Throws: ClientException

Since: 1.2

propertyCreate

public void propertyCreate(String path, String name, byte[] value, boolean recurse)
Create and sets one property of an item with a byte array value

Parameters: path path of the item name name of the property value new value of the property recurse set property also on the subdirectories

Throws: ClientException

propertyCreate

public void propertyCreate(String path, String name, byte[] value, boolean recurse, boolean force)
Create and sets one property of an item with a byte array value

Parameters: path path of the item name name of the property value new value of the property recurse set property also on the subdirectories force do not check if the value is valid

Throws: ClientException

Since: 1.2

propertyGet

public PropertyData propertyGet(String path, String name)
Retrieve one property of one iten

Parameters: path path of the item name name of property

Returns: the Property

Throws: ClientException

propertyGet

public PropertyData propertyGet(String path, String name, Revision revision)
Retrieve one property of one iten

Parameters: path path of the item name name of property revision revision of the item

Returns: the Property

Throws: ClientException

Since: 1.2

propertyGet

public PropertyData propertyGet(String path, String name, Revision revision, Revision pegRevision)
Retrieve one property of one iten

Parameters: path path of the item name name of property revision revision of the item pegRevision the revision to interpret path

Returns: the Property

Throws: ClientException

Since: 1.2

propertyRemove

public void propertyRemove(String path, String name, boolean recurse)
Remove one property of an item.

Parameters: path path of the item name name of the property recurse remove the property also on subdirectories

Throws: ClientException

propertySet

public void propertySet(String path, String name, String value, boolean recurse)
Sets one property of an item with a String value

Parameters: path path of the item name name of the property value new value of the property recurse set property also on the subdirectories

Throws: ClientException

propertySet

public void propertySet(String path, String name, String value, boolean recurse, boolean force)
Sets one property of an item with a String value

Parameters: path path of the item name name of the property value new value of the property recurse set property also on the subdirectories force do not check if the value is valid

Throws: ClientException

Since: 1.2

propertySet

public void propertySet(String path, String name, byte[] value, boolean recurse)
Sets one property of an item with a byte array value

Parameters: path path of the item name name of the property value new value of the property recurse set property also on the subdirectories

Throws: ClientException

propertySet

public void propertySet(String path, String name, byte[] value, boolean recurse, boolean force)
Sets one property of an item with a byte array value

Parameters: path path of the item name name of the property value new value of the property recurse set property also on the subdirectories force do not check if the value is valid

Throws: ClientException

Since: 1.2

relocate

public void relocate(String from, String to, String path, boolean recurse)
Rewrite the url's in the working copy

Parameters: from old url to new url path working copy path recurse recurse into subdirectories

Throws: ClientException

remove

public void remove(String[] path, String message, boolean force)
Sets a file for deletion.

Parameters: path path or url to be deleted message if path is a url, this will be the commit message. force delete even when there are local modifications.

Throws: ClientException

resolved

public void resolved(String path, boolean recurse)
Removes the 'conflicted' state on a file.

Parameters: path path to cleanup recurse recurce into subdirectories

Throws: ClientException

revert

public void revert(String path, boolean recurse)
Reverts a file to a pristine state.

Parameters: path path of the file. recurse recurse into subdirectories

Throws: ClientException

revProperties

public PropertyData[] revProperties(String path, Revision rev)
Retrieve all revsision properties of one item

Parameters: path path of the item rev revision to retrieve

Returns: the Properties

Throws: ClientException

Since: 1.2

revProperty

public PropertyData revProperty(String path, String name, Revision rev)
Retrieve one revsision property of one item

Parameters: path path of the item name name of the property rev revision to retrieve

Returns: the Property

Throws: ClientException

setConfigDirectory

public void setConfigDirectory(String configDir)
Set directory for the configuration information

Parameters: configDir path of the directory

Throws: ClientException

setPrompt

public void setPrompt(PromptUserPassword prompt)
Register callback interface to supply username and password on demand

Parameters: prompt the callback interface

setRevProperty

public void setRevProperty(String path, String name, Revision rev, String value, boolean force)
set one revsision property of one item

Parameters: path path of the item name name of the property rev revision to retrieve value value of the property force

Throws: ClientException

Since: 1.2

singleStatus

public Status singleStatus(String path, boolean onServer)
Returns the status of a single file in the path.

Parameters: path File to gather status. onServer Request status information from the server.

Returns: the subversion status of the file.

status

public Status[] status(String path, boolean descend, boolean onServer, boolean getAll)
List a directory or file of the working copy.

Parameters: path Path to explore. descend Recurse into subdirectories if they exist. onServer Request status information from server. getAll get status for uninteristing files (unchanged).

Returns: Array of Status entries.

status

public Status[] status(String path, boolean descend, boolean onServer, boolean getAll, boolean noIgnore)
List a directory or file of the working copy.

Parameters: path Path to explore. descend Recurse into subdirectories if they exist. onServer Request status information from server. getAll get status for uninteristing files (unchanged). noIgnore get status for normaly ignored files and directories.

Returns: Array of Status entries.

status

public Status[] status(String path, boolean descend, boolean onServer, boolean getAll, boolean noIgnore, boolean ignoreExternals)
List a directory or file of the working copy.

Parameters: path Path to explore. descend Recurse into subdirectories if they exist. onServer Request status information from server. getAll get status for uninteristing files (unchanged). noIgnore get status for normaly ignored files and directories. ignoreExternals if externals are ignored during checkout

Returns: Array of Status entries.

Since: 1.2

streamFileContent

public void streamFileContent(String path, Revision revision, Revision pegRevision, int bufferSize, OutputStream stream)
Write the file's content to the specified output stream.

Parameters: path the path of the file revision the revision to retrieve pegRevision the revision at which to interpret the path the stream to write the file's content to

Throws: ClientException

unlock

public void unlock(String[] path, boolean force)
Unlock a working copy item

Parameters: path path of the item force break an existing lock

Throws: ClientException

Since: 1.2

update

public long update(String path, Revision revision, boolean recurse)
Updates the directory or file from repository

Parameters: path target file. revision the revision number to update. Revision.HEAD will update to the latest revision. recurse recursively update.

Throws: ClientException

update

public long[] update(String[] path, Revision revision, boolean recurse, boolean ignoreExternals)
Updates the directories or files from repository

Parameters: path array of target files. revision the revision number to update. Revision.HEAD will update to the latest revision. recurse recursively update. ignoreExternals if externals are ignored during update

Throws: ClientException

Since: 1.2

username

public void username(String username)
Sets the username used for authentification.

Parameters: username the username