HgAliases.

HgTip(ICakeContext, DirectoryPath) Method

Summary

Get the tip revision.
Assembly
Cake.Hg.dll
Namespace
Cake.Hg
Containing Type
HgAliases

Syntax

public static Changeset HgTip(this ICakeContext context, DirectoryPath repositoryPath)

Examples

    var changeset = HgTip("./");

    Information("[{0}] - {1} by {2} ({3})",
        changeset.Branch,
        changeset.Hash,
        changeset.AuthorName,
        changeset.AuthorEmailAddress);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext Cake context
repositoryPath DirectoryPath Path to repository

Return Value

Type Description
Changeset Returns information about current tip revision