# SVN Module

Provides functions to access and operate on SVN repositories through.

## Method Overview

Method | Description
--- | ---
createRepositoryLocation() | Creates repository location.
getRevision() | Get the revision for a given resource.
importProjectFromSVN() | Imports project from repository location.
importProjectsFromSVN() | Import all projects from a repository location.

## Methods

### createRepositoryLocation

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

Creates repository location. Creates repository location with rootUrl, if location already exists: return existing location

rootUrl
  defines the root URL of the repository
username
  registered username of the repositoryOptional: defaults to <null>.
password
  password depending to the usernameOptional: defaults to <null>.

repository location which is created, or the existing repository location

### getRevision

long getRevision(Object resource)

Get the revision for a given resource.

resource
  resource to get revision for

revision number

### importProjectFromSVN

void importProjectFromSVN(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

### importProjectsFromSVN

void importProjectsFromSVN(Object rootLocation)

Import all projects from a repository location. It scans the location and all projects found are imported.

rootLocation
  can be a string (to generate RepositoryLocation automatically) or already a RepositoryLocation