SVN Module

Provides functions to access and operate on SVN repositories.

Method Overview

Method Description
createRepositoryLocation() Creates a new repository location.
getRemoteLocation() Get the remote location for a given local resource.
getRevision() Get the revision for a given resource.
importProjectsFromSVN() Imports project from repository location.

Methods

createRepositoryLocation

org.eclipse.team.svn.core.resource.IRepositoryLocation createRepositoryLocation(String rootUrl, [String username], [String password])

Creates a new repository location. If the location already exists the existing location gets returned.

rootUrl
defines the root URL of the repository
username
username to be usedOptional: defaults to <null>.
password
password for authenticationOptional: defaults to <null>.

repository location

getRemoteLocation

String getRemoteLocation(Object resource)

Get the remote location for a given local resource.

resource
resource to get remote location for

remote URL for the given resource

getRevision

long getRevision(Object resource)

Get the revision for a given resource.

resource
resource to get revision for

revision number

importProjectsFromSVN

void importProjectsFromSVN(Object rootLocation, [String[] projectLocations])

Imports project from repository location.

rootLocation
can be a string (to generate RepositoryLocation automatically) or already a RepositoryLocation
projectLocations
array from relative paths to project locations within the repository. When not provided all projects from trunk will be imported (not recursive)Optional: defaults to <null>.