C# 클래스 Perforce.P4Shell

파일 보기 프로젝트 열기: jurney/P4Backup

공개 메소드들

메소드 설명
ActionToString ( System.Action action ) : string
Add ( string filePath, int changelistID ) : bool
CreateChangelist ( string description, int &changelistID ) : bool

Creates a new changelist with the given description.

Delete ( string filePath, int changelistID ) : bool
EasyDelete ( string filePath, int changelistID ) : void
EasyEdit ( List fileStats, int changelistID, bool reopenDeleted ) : void

This utility method will attempt whatever is necessary to get the given file path into an editable state as far as Perforce is concerned.

EasyEdit ( string filePaths, int changelistID, bool reopenDeleted ) : void

This utility method will attempt whatever is necessary to get the given file path into an editable state as far as Perforce is concerned.

Edit ( string filePath, int changelistID ) : bool
FindChangelist ( string descriptionStartsWith ) : List

Finds a list of changelists whose first 31 characters of the description match the given description, case insensitive.

GetChangelist ( int changelistID ) : Changelist
GetClientSpec ( string client, ClientSpec &clientSpec ) : bool
GetClientSpecs ( ) : List
GetClients ( ) : List
GetFileStats ( string filePath ) : List
GetOpenedFileStats ( int optionalChangelist ) : List
GetOpenedFiles ( int optionalChangelist ) : List
GetPendingChangelists ( ) : List
Initialize ( ) : void

Initialize P4Shell with the current system defaults.

Integrate ( string fromFile, string toFile, System.Operation operation ) : bool
IsHeadRevisionDelete ( FileStats fileStat ) : bool
IsHeadRevisionDelete ( string filePath, int changelistID ) : bool
PingServer ( ) : bool

Ping's the Perforce server using the current P4Shell settings.

Reopen ( string filePath, int newChangelistID ) : bool
Revert ( string filePath ) : bool
SetFileReadOnly ( string filePath ) : void
SetFileWritable ( string filePath ) : void
SetFilesReadOnly ( List files ) : void
SetFilesWriteable ( List files ) : void
StringToAction ( string actionName ) : System.Action
Submit ( int changelistID, string description ) : bool

Submits the given changelist, and updates it's description if provided. Note that when submitting the default changelist, you must always provide a description.

Sync ( string filePath ) : bool

비공개 메소드들

메소드 설명
Execute ( string arguments, string input ) : void

메소드 상세

ActionToString() 공개 정적인 메소드

public static ActionToString ( System.Action action ) : string
action System.Action
리턴 string

Add() 공개 정적인 메소드

public static Add ( string filePath, int changelistID ) : bool
filePath string
changelistID int
리턴 bool

CreateChangelist() 공개 정적인 메소드

Creates a new changelist with the given description.
public static CreateChangelist ( string description, int &changelistID ) : bool
description string The description of the changelist.
changelistID int
리턴 bool

Delete() 공개 정적인 메소드

public static Delete ( string filePath, int changelistID ) : bool
filePath string
changelistID int
리턴 bool

EasyDelete() 공개 정적인 메소드

public static EasyDelete ( string filePath, int changelistID ) : void
filePath string
changelistID int
리턴 void

EasyEdit() 공개 정적인 메소드

This utility method will attempt whatever is necessary to get the given file path into an editable state as far as Perforce is concerned.
public static EasyEdit ( List fileStats, int changelistID, bool reopenDeleted ) : void
fileStats List
changelistID int
reopenDeleted bool
리턴 void

EasyEdit() 공개 정적인 메소드

This utility method will attempt whatever is necessary to get the given file path into an editable state as far as Perforce is concerned.
public static EasyEdit ( string filePaths, int changelistID, bool reopenDeleted ) : void
filePaths string
changelistID int The changelist ID to use if it is necessary to open the file.
reopenDeleted bool
리턴 void

Edit() 공개 정적인 메소드

public static Edit ( string filePath, int changelistID ) : bool
filePath string
changelistID int
리턴 bool

FindChangelist() 공개 정적인 메소드

Finds a list of changelists whose first 31 characters of the description match the given description, case insensitive.
public static FindChangelist ( string descriptionStartsWith ) : List
descriptionStartsWith string The given description.
리턴 List

GetChangelist() 공개 정적인 메소드

public static GetChangelist ( int changelistID ) : Changelist
changelistID int
리턴 Changelist

GetClientSpec() 공개 정적인 메소드

public static GetClientSpec ( string client, ClientSpec &clientSpec ) : bool
client string
clientSpec ClientSpec
리턴 bool

GetClientSpecs() 공개 정적인 메소드

public static GetClientSpecs ( ) : List
리턴 List

GetClients() 공개 정적인 메소드

public static GetClients ( ) : List
리턴 List

GetFileStats() 공개 정적인 메소드

public static GetFileStats ( string filePath ) : List
filePath string
리턴 List

GetOpenedFileStats() 공개 정적인 메소드

public static GetOpenedFileStats ( int optionalChangelist ) : List
optionalChangelist int
리턴 List

GetOpenedFiles() 공개 정적인 메소드

public static GetOpenedFiles ( int optionalChangelist ) : List
optionalChangelist int
리턴 List

GetPendingChangelists() 공개 정적인 메소드

public static GetPendingChangelists ( ) : List
리턴 List

Initialize() 공개 정적인 메소드

Initialize P4Shell with the current system defaults.
public static Initialize ( ) : void
리턴 void

Integrate() 공개 정적인 메소드

public static Integrate ( string fromFile, string toFile, System.Operation operation ) : bool
fromFile string
toFile string
operation System.Operation
리턴 bool

IsHeadRevisionDelete() 공개 정적인 메소드

public static IsHeadRevisionDelete ( FileStats fileStat ) : bool
fileStat FileStats
리턴 bool

IsHeadRevisionDelete() 공개 정적인 메소드

public static IsHeadRevisionDelete ( string filePath, int changelistID ) : bool
filePath string
changelistID int
리턴 bool

PingServer() 공개 정적인 메소드

Ping's the Perforce server using the current P4Shell settings.
public static PingServer ( ) : bool
리턴 bool

Reopen() 공개 정적인 메소드

public static Reopen ( string filePath, int newChangelistID ) : bool
filePath string
newChangelistID int
리턴 bool

Revert() 공개 정적인 메소드

public static Revert ( string filePath ) : bool
filePath string
리턴 bool

SetFileReadOnly() 공개 정적인 메소드

public static SetFileReadOnly ( string filePath ) : void
filePath string
리턴 void

SetFileWritable() 공개 정적인 메소드

public static SetFileWritable ( string filePath ) : void
filePath string
리턴 void

SetFilesReadOnly() 공개 정적인 메소드

public static SetFilesReadOnly ( List files ) : void
files List
리턴 void

SetFilesWriteable() 공개 정적인 메소드

public static SetFilesWriteable ( List files ) : void
files List
리턴 void

StringToAction() 공개 정적인 메소드

public static StringToAction ( string actionName ) : System.Action
actionName string
리턴 System.Action

Submit() 공개 정적인 메소드

Submits the given changelist, and updates it's description if provided. Note that when submitting the default changelist, you must always provide a description.
public static Submit ( int changelistID, string description ) : bool
changelistID int The changelistID to submit.
description string The changelist description. For changelists other than the default changelist, /// this can be null, in which case the existing changelist description will be used.
리턴 bool

Sync() 공개 정적인 메소드

public static Sync ( string filePath ) : bool
filePath string
리턴 bool