C# Класс Google.Apis.Release.Repositories.Hg

Mercurial repository interface class.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

AddRemoveFiles() публичный Метод

Adds all unversioned files and remove all versioned files.
public AddRemoveFiles ( ) : void
Результат void

Combine() публичный Метод

Creates the combined path of the specified directories.
public Combine ( ) : string
Результат string

Commit() публичный Метод

Commits the pending changes.
public Commit ( string message ) : bool
message string Description of the changes/the commit.
Результат bool

CreateChangelist() публичный Метод

Creates a change list by listing all changes made since the last release.
public CreateChangelist ( ) : IEnumerable
Результат IEnumerable

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Hg() публичный Метод

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
Результат System

Push() публичный Метод

Pushes all committed changes to the server.
public Push ( ) : void
Результат void

Tag() публичный Метод

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. ///
Результат void

Update() публичный Метод

Updates the repository by the branch name.
public Update ( string branchName ) : void
branchName string
Результат void