C# Class Perforce.P4Shell

Afficher le fichier Open project: jurney/P4Backup

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
Execute ( string arguments, string input ) : void

Method Details

ActionToString() public static méthode

public static ActionToString ( System.Action action ) : string
action System.Action
Résultat string

Add() public static méthode

public static Add ( string filePath, int changelistID ) : bool
filePath string
changelistID int
Résultat bool

CreateChangelist() public static méthode

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
Résultat bool

Delete() public static méthode

public static Delete ( string filePath, int changelistID ) : bool
filePath string
changelistID int
Résultat bool

EasyDelete() public static méthode

public static EasyDelete ( string filePath, int changelistID ) : void
filePath string
changelistID int
Résultat void

EasyEdit() public static méthode

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
Résultat void

EasyEdit() public static méthode

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
Résultat void

Edit() public static méthode

public static Edit ( string filePath, int changelistID ) : bool
filePath string
changelistID int
Résultat bool

FindChangelist() public static méthode

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.
Résultat List

GetChangelist() public static méthode

public static GetChangelist ( int changelistID ) : Changelist
changelistID int
Résultat Changelist

GetClientSpec() public static méthode

public static GetClientSpec ( string client, ClientSpec &clientSpec ) : bool
client string
clientSpec ClientSpec
Résultat bool

GetClientSpecs() public static méthode

public static GetClientSpecs ( ) : List
Résultat List

GetClients() public static méthode

public static GetClients ( ) : List
Résultat List

GetFileStats() public static méthode

public static GetFileStats ( string filePath ) : List
filePath string
Résultat List

GetOpenedFileStats() public static méthode

public static GetOpenedFileStats ( int optionalChangelist ) : List
optionalChangelist int
Résultat List

GetOpenedFiles() public static méthode

public static GetOpenedFiles ( int optionalChangelist ) : List
optionalChangelist int
Résultat List

GetPendingChangelists() public static méthode

public static GetPendingChangelists ( ) : List
Résultat List

Initialize() public static méthode

Initialize P4Shell with the current system defaults.
public static Initialize ( ) : void
Résultat void

Integrate() public static méthode

public static Integrate ( string fromFile, string toFile, System.Operation operation ) : bool
fromFile string
toFile string
operation System.Operation
Résultat bool

IsHeadRevisionDelete() public static méthode

public static IsHeadRevisionDelete ( FileStats fileStat ) : bool
fileStat FileStats
Résultat bool

IsHeadRevisionDelete() public static méthode

public static IsHeadRevisionDelete ( string filePath, int changelistID ) : bool
filePath string
changelistID int
Résultat bool

PingServer() public static méthode

Ping's the Perforce server using the current P4Shell settings.
public static PingServer ( ) : bool
Résultat bool

Reopen() public static méthode

public static Reopen ( string filePath, int newChangelistID ) : bool
filePath string
newChangelistID int
Résultat bool

Revert() public static méthode

public static Revert ( string filePath ) : bool
filePath string
Résultat bool

SetFileReadOnly() public static méthode

public static SetFileReadOnly ( string filePath ) : void
filePath string
Résultat void

SetFileWritable() public static méthode

public static SetFileWritable ( string filePath ) : void
filePath string
Résultat void

SetFilesReadOnly() public static méthode

public static SetFilesReadOnly ( List files ) : void
files List
Résultat void

SetFilesWriteable() public static méthode

public static SetFilesWriteable ( List files ) : void
files List
Résultat void

StringToAction() public static méthode

public static StringToAction ( string actionName ) : System.Action
actionName string
Résultat System.Action

Submit() public static méthode

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.
Résultat bool

Sync() public static méthode

public static Sync ( string filePath ) : bool
filePath string
Résultat bool