This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Hg.
Summary
Get the tip revision.
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 |