Skip to content
Nuno Aguiar edited this page Dec 29, 2017 · 2 revisions

SVN.SVN

SVN.SVN(aURL, aUsername, aPassword, aFile, aPort) : SVN

Creates a new SVN instance object for the give SVN URL (e.g http://... ; svn://... ; file://... svn+ssh:// ...). To authenticate in the remote SVN (if needed), fFor svn+ssh you can also provide aUsername, aPassword, aFile and  aPort; for file only the aUsername will be considered; for http, svn and https only the aUsername and aPassword  will be considered.


SVN.add

SVN.add(anArrayOfFilePaths, shouldForce, createParentDirectories)

Flags all file paths in anArrayOFilePaths to be added on to the SVN repository on commit. To force the operation you can optionally use shouldForce = true and you can optionally indicate to createParentDirectories.


SVN.checkout

SVN.checkout(aFilePathDestiny, aRevision) : Number

Checkout a given aFilePathDestiny from the connected repository. The aRevision can be the number of the revision or HEAD, WORKING, PREVIOUS, BASE or COMMITED. Returns the value of the checkout revision.


SVN.cleanup

SVN.cleanup(aFilePath)

Executes a SVN cleanup on the provided aFilePath.


SVN.commit

SVN.commit(anArrayOfFroms, aCommitMessage, useForce) : Object

Commits anArrayOfFroms paths on the filesystem with aCommitMessage. If necessary to force commit, in case of conflict, you can use useForce = true. Returns a SVNCommitInfo object.


SVN.delete

SVN.delete(anArrayOfFilePaths, forceDelete)

Deletes all file paths in anArrayOfFilePaths from the current working copy (including file system  level delete). Optionally you can indicate to forceDelete = true.


SVN.getClientManager

SVN.getClientManager() : SVNClientManager

Returns a SVNClientManager object.


SVN.getCommitClient

SVN.getCommitClient() : SVNCommitClient

Returns a SVNCommitClient object.


SVN.getDiffClient

SVN.getDiffClient() : SVNDiffClient

Returns a SVNDiffClient object.


SVN.getFile

SVN.getFile(aFilePath, aRevision) : JavaByteArrayOutputStream

Tries to retrieve a file from the provide aFilePath for aRevision (HEAD, WORKING, PREVIOUS, BASE or COMMITTED).


SVN.getLogClient

SVN.getLogClient() : SVNLogClient

Returns a LogClient object.


SVN.getLookClient

SVN.getLookClient() : SVNLookClient

Returns a SVNLookClient object.


SVN.getURL

SVN.getURL() : Object

Returns the current SVN URL.


SVN.getUpdateClient

SVN.getUpdateClient() : SVNUpdateClient

Returns a SVNUpdateClient object.


SVN.getWCClient

SVN.getWCClient() : SVNWCClient

Returns a WCClient object.


SVN.lock

SVN.lock(anArrayOfFilePaths, stealLock, lockMessage)

Locks all file paths in anArrayOfFilePaths. Optionally you can stealLock = true and provided a lockMessage.


SVN.resolve

SVN.resolve(aFilePath, conflictChoice)

Resolves a conflict for the provided aFilePath. For the conflictChoice choose one of the available options:  Base, Merged, Mine_Conflict, Mine_Full, Postpone, Theirs_Conflict and Theirs_Full.


SVN.revert

SVN.revert(anArrayOfFilePaths)

Reverts all file paths in anArrayOfFilePaths from the current working copy.


SVN.unlock

SVN.unlock(anArrayOfFilePaths, breakLock)

Unlocks all file paths in anArrayOfFilePaths. Optionally you can indicate to breakLock = true.


SVN.update

SVN.update(anArrayOfFroms, aRevision) : anArrayOfNumbers

Commits anArrayOfFroms paths on the filesystem. The aRevision can be the number of the revision or HEAD, WORKING, PREVIOUS, BASE or COMMITED. Returns the value of each update revision.

Clone this wiki locally