The subversion module

A class to represent a subversion repository.

Classes

SVNRepository

class src.tools.subversion.SVNRepository(repositoryHome)[source]

An object to represent an SVN repository.

Methods

add(item)[source]

Mark an item for addition to the repository.

checkout(url)[source]

Check out an SVN repository specified by URL.

Parameters :

url : str

The web address of the repository to check out.

commit(message)[source]

Upload a working copy to the repository.

getContentsList(recursive=True)[source]

Get a list of the contents of the repository.

Parameters :

recursive : bool

Whether to scan the repository tree recursively. If True, include all elements of the repository, regardless of depth. If False, include only the top-level elements.

Returns :

list of str :

A list of strings, where each string represents a single item in the repository.

getContentsString(recursive=True)[source]

Get the contents of the repository as a single string.

Parameters :

recursive : bool

Whether to scan the repository tree recursively. If True, include all elements of the repository, regardless of depth. If False, include only the top-level elements.

Returns :

str :

A string containing each item in the repository on one line.

getLog()[source]

Get the repository’s change log.

getRevision()[source]

Get the current revision of the repository.

Returns :

int :

The current revision of the repository.

getStatusList()[source]

Get the status list of the SVN repository.

Returns :

list of str :

A list of strings indicating the status of the repository (each string corresponds to a file, and “status” contains information about whether the file should be added or removed or whether there are conflicts.

getStatusString()[source]

Get the status of the SVN repository.

Returns :

str :

A many-line string indicating the status of the repository (each line corresponds to a file, and “status” includes information about whether the file should be added or removed or whether there are conflicts.

markUnknowns()[source]

Update the repository to reflect changes in the local filesystem.

When files are added to or removed from the folder tree where the working copy is stored, the repository does not know what to do with them. To keep the entire tree properly versioned, mark every missing element as “deleted” and every new (“unversioned”) element as “added.”

remove(item)[source]

Mark an item for removal from the repository.

repairObstruction(item)[source]

Attempt to repair obstructions, usually without success.

update()[source]

Update the working copy to accord with the repository.

Table Of Contents

Previous topic

The config_parser module

Next topic

The coordinates module

This Page