C# Class SourceControl.SubversionInterface

The Subversion Source Control interface.
Inheritance: ISourceControl, ILogControl
Datei anzeigen Open project: daptiv/Malevich

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

Connect() public method

Connects to Subversion. Does nothing, really.
public Connect ( ) : bool
return bool

Disconnect() public method

Disconnects from Subversion. Does nothing, really.
public Disconnect ( ) : void
return void

GetChange() public method

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.
return Change

GetFile() public method

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
return string

GetInstance() public static method

Factory for the Subversion instances.
public static GetInstance ( string clientExe, string url, string client ) : ISourceControl
clientExe string
url string
client string
return ISourceControl

GetLocalRootDirectory() public method

Gets the root directory of the repository, derived from the current directory and svn info
public GetLocalRootDirectory ( ) : string
return string

GetLocalRootDirectory() public static method

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
return string

GetSettings() public static method

Gets the client settings.
public static GetSettings ( ) : SourceControlSettings
return SourceControlSettings

SetLogLevel() public method

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.
return void