C# Класс SourceControl.SubversionInterface

The Subversion Source Control interface.
Наследование: ISourceControl, ILogControl
Показать файл Открыть проект

Открытые методы

Метод Описание
Connect ( ) : bool

Connects to Subversion. Does nothing, really.

Disconnect ( ) : void

Disconnects from Subversion. Does nothing, really.

GetChange ( string changeId, bool includeBranchedFiles ) : Change

Gets the change from the repository Returns null if any error occurs, or the change is not pending.

GetFile ( string name, int revision, System.DateTime &timeStamp ) : string

Reads a file from the source control system.

GetInstance ( string clientExe, string url, string client ) : ISourceControl

Factory for the Subversion instances.

GetLocalRootDirectory ( ) : string

Gets the root directory of the repository, derived from the current directory and svn info

GetLocalRootDirectory ( string url ) : string

Gets the root directory of the repository, given the SVN URL, SVN Repository Root, and the current directory

GetSettings ( ) : SourceControlSettings

Gets the client settings.

SetLogLevel ( LogOptions level ) : void

Controls the log output. Implemented here primarily to allow dumping the IO from the client utility.

Приватные методы

Метод Описание
FillInFileData ( Change change ) : void

Iterates through every file in the change list, and: 1. fills in its local path and 2. diff if it is an edit, or the add file itself if it is an add.

GetRevisionFromFile ( string filename, string &serverFilename ) : int

Gets the current revision of a file.

RunClient ( string commandLine, bool eatFirstLine ) : string
SubversionInterface ( string clientExe, string url, string client ) : System

Trivial constructor.

Описание методов

Connect() публичный Метод

Connects to Subversion. Does nothing, really.
public Connect ( ) : bool
Результат bool

Disconnect() публичный Метод

Disconnects from Subversion. Does nothing, really.
public Disconnect ( ) : void
Результат void

GetChange() публичный Метод

Gets the change from the repository Returns null if any error occurs, or the change is not pending.
public GetChange ( string changeId, bool includeBranchedFiles ) : Change
changeId string shelveset identifier.
includeBranchedFiles bool Include full text for branched and integrated files.
Результат Change

GetFile() публичный Метод

Reads a file from the source control system.
public GetFile ( string name, int revision, System.DateTime &timeStamp ) : string
name string
revision int The revision of the file to get.
timeStamp System.DateTime
Результат string

GetInstance() публичный статический Метод

Factory for the Subversion instances.
public static GetInstance ( string clientExe, string url, string client ) : ISourceControl
clientExe string
url string
client string
Результат ISourceControl

GetLocalRootDirectory() публичный Метод

Gets the root directory of the repository, derived from the current directory and svn info
public GetLocalRootDirectory ( ) : string
Результат string

GetLocalRootDirectory() публичный статический Метод

Gets the root directory of the repository, given the SVN URL, SVN Repository Root, and the current directory
public static GetLocalRootDirectory ( string url ) : string
url string
Результат string

GetSettings() публичный статический Метод

Gets the client settings.
public static GetSettings ( ) : SourceControlSettings
Результат SourceControlSettings

SetLogLevel() публичный Метод

Controls the log output. Implemented here primarily to allow dumping the IO from the client utility.
public SetLogLevel ( LogOptions level ) : void
level LogOptions The level of logging.
Результат void