C# Class Google.Apis.Release.Repositories.Hg

Mercurial repository interface class.
Inheritance: IDisposable
ファイルを表示 Open project: Gainedge/BetterExplorer Class Usage Examples

Public Methods

Method Description
AddRemoveFiles ( ) : void

Adds all unversioned files and remove all versioned files.

Combine ( ) : string

Creates the combined path of the specified directories.

Commit ( string message ) : bool

Commits the pending changes.

CreateChangelist ( ) : IEnumerable

Creates a change list by listing all changes made since the last release.

Dispose ( ) : void
Hg ( Uri repositoryUri, string localDir ) : System

Constructs a new repository. It creates a new repository if the folder doesn't exists, otherwise it gets the current status of the repository.

Push ( ) : void

Pushes all committed changes to the server.

Tag ( string tagName, bool force = false ) : void

Adds a tag to the last revision.

Update ( string branchName ) : void

Updates the repository by the branch name.

Private Methods

Method Description
RunHg ( string command ) : void

Runs a HG command. In addition it prints errors and messages to trace.

RunHg ( string command, Action errorCallback = null, Action messageCallback = null ) : void

Run a HG command which the specific callback for errors or messages returned from the command.

RunListeningHg ( string command ) : string[]

Runs a HG command and returns all its errors and messages output.

Method Details

AddRemoveFiles() public method

Adds all unversioned files and remove all versioned files.
public AddRemoveFiles ( ) : void
return void

Combine() public method

Creates the combined path of the specified directories.
public Combine ( ) : string
return string

Commit() public method

Commits the pending changes.
public Commit ( string message ) : bool
message string Description of the changes/the commit.
return bool

CreateChangelist() public method

Creates a change list by listing all changes made since the last release.
public CreateChangelist ( ) : IEnumerable
return IEnumerable

Dispose() public method

public Dispose ( ) : void
return void

Hg() public method

Constructs a new repository. It creates a new repository if the folder doesn't exists, otherwise it gets the current status of the repository.
public Hg ( Uri repositoryUri, string localDir ) : System
repositoryUri System.Uri The URI of this repository
localDir string The local directory which contains the repository files
return System

Push() public method

Pushes all committed changes to the server.
public Push ( ) : void
return void

Tag() public method

Adds a tag to the last revision.
public Tag ( string tagName, bool force = false ) : void
tagName string The tag to add.
force bool /// If set to true will overwrite existing labels of this name see "hg help tag" and its --force parameter. ///
return void

Update() public method

Updates the repository by the branch name.
public Update ( string branchName ) : void
branchName string
return void