Functions/Get-HgTip.ps1
function Get-HgTip { <# .SYNOPSIS Gets the tip changeset from a repository. .DESCRIPTION Returns the tip changeset as an object. ALIASES ghgt .EXAMPLE Find-HgTip Gets the tip revision from the repository in the current directory. .EXAMPLE Find-HgTip -Path C:\Projects\psHg Gets the tip revision in the C:\Projects\psHg directory. #> [CmdletBinding()] [OutputType([PsHg.ChangesetInfo])] param( [string] # The path to the repository whose tip changeset should be found. Defaults to the current directory. $Path = (Resolve-Path .) ) Find-HgChangesets -Path $Path -Revision 'tip' } Set-Alias -Name 'Find-HgTip' -Value 'Get-HgTip' Set-Alias -Name 'ghgt' -Value 'Get-HgTip' |