HgAliases.

HgTags(ICakeContext, DirectoryPath) Method

Summary

Get list of current tags.
Assembly
Cake.Hg.dll
Namespace
Cake.Hg
Containing Type
HgAliases

Syntax

public static IEnumerable<Tag> HgTags(this ICakeContext context, DirectoryPath repositoryPath)

Examples

    var tags = HgTags("./");

    foreach (var tag in tags)
    {
        Information("Name: {0}, Revision: {1}", tag.Name, tag.RevisionNumber);
    }

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

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

Return Value

Type Description
IEnumerable<Tag>