hg identify [-nibtB] [-r REV] [SOURCE]

aliases: id

identify the working copy or specified revision

    With no revision, print a summary of the current state of the repository.

    Specifying a path to a repository root or Mercurial bundle will cause
    lookup to operate on that repository/bundle.

    This summary identifies the repository state using one or two parent hash
    identifiers, followed by a "+" if there are uncommitted changes in the
    working directory, a list of tags for this revision and a branch name for
    non-default branches.

    Returns 0 if successful.

options:

 -r --rev REV    identify the specified revision
 -n --num        show local revision number
 -i --id         show global revision id
 -b --branch     show branch
 -t --tags       show tags
 -B --bookmarks  show bookmarks

use "hg -v help identify" to show global options