C# 클래스 SourceControl.PerforceBase

Implements the base class for all perforce-type source control systems.
상속: ISourceControl, ILogControl
파일 보기 프로젝트 열기: daptiv/Malevich

공개 메소드들

메소드 설명
Connect ( ) : bool

Connects to the depot.

Disconnect ( ) : void

Disconnects from the depot.

GetChange ( string changeListId, bool includeBranchedFiles ) : Change

Gets the change from the source control system. The change must be pending. Returns null if any error occurs, or the change is not pending.

GetFile ( string depotFileName, int revision, System.DateTime &fileTime ) : string

Reads a file from the source control system.

SetLogLevel ( LogOptions level ) : void

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

보호된 메소드들

메소드 설명
PerforceBase ( string clientExe, ISourceControlSystem sourceControl ) : System

Constructor.

RunClient ( string commandLine, bool eatFirstLine ) : string

Runs the client exe, returns the output in a string. If error happens, prints stderr and returns null.

비공개 메소드들

메소드 설명
BugOut ( string output ) : void

A customer-friendly way to fail if we cannot parse the output of client exe.

FillInFileData ( Change change, bool includeBranchedFiles ) : void

For every file in the change list, fill in its local path and either diff if it is an edit, or the file itself if it is an add.

메소드 상세

Connect() 공개 메소드

Connects to the depot.
public Connect ( ) : bool
리턴 bool

Disconnect() 공개 메소드

Disconnects from the depot.
public Disconnect ( ) : void
리턴 void

GetChange() 공개 메소드

Gets the change from the source control system. The change must be pending. Returns null if any error occurs, or the change is not pending.
public GetChange ( string changeListId, bool includeBranchedFiles ) : Change
changeListId string Incude the text of branched and integrated files.
includeBranchedFiles bool
리턴 Change

GetFile() 공개 메소드

Reads a file from the source control system.
public GetFile ( string depotFileName, int revision, System.DateTime &fileTime ) : string
depotFileName string The server name of the file.
revision int The revision of the file to get.
fileTime System.DateTime
리턴 string

PerforceBase() 보호된 메소드

Constructor.
protected PerforceBase ( string clientExe, ISourceControlSystem sourceControl ) : System
clientExe string The location of source depot client (e.g. sd.exe).
sourceControl ISourceControlSystem The Source Control - must be either Source Depot or Perforce.
리턴 System

RunClient() 보호된 메소드

Runs the client exe, returns the output in a string. If error happens, prints stderr and returns null.
protected RunClient ( string commandLine, bool eatFirstLine ) : string
commandLine string Command line to execute.
eatFirstLine bool Whether the first line should be swallowed.
리턴 string

SetLogLevel() 공개 메소드

Control 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