Mercurial > hg > index.fcgi > rcg > rcg-1
Help: heads
hg heads [-ct] [-r STARTREV] [REV]...
show current repository heads or show branch heads
With no arguments, show all repository branch heads.
Repository "heads" are changesets with no child changesets. They are where development generally takes place and are the usual targets for update and merge operations. Branch heads are changesets that have no child changeset on the same branch.
If one or more REVs are given, only branch heads on the branches associated with the specified changesets are shown. This means that you can use "hg heads foo" to see the heads on a branch named "foo".
If -c/--closed is specified, also show branch heads marked closed (see "hg commit --close-branch").
If STARTREV is specified, only those heads that are descendants of STARTREV will be displayed.
If -t/--topo is specified, named branch mechanics will be ignored and only changesets without children will be shown.
Returns 0 if matching heads are found, 1 if not.
options:
-r | --rev STARTREV | show only heads which are descendants of STARTREV |
-t | --topo | show topological heads only |
-a | --active | show active branchheads only (DEPRECATED) |
-c | --closed | show normal and closed branch heads |
--style STYLE | display using template map file | |
--template TEMPLATE | display with template |
global options:
-R | --repository REPO | repository root directory or name of overlay bundle file |
--cwd DIR | change working directory | |
-y | --noninteractive | do not prompt, automatically pick the first choice for all prompts |
-q | --quiet | suppress output |
-v | --verbose | enable additional output |
--config CONFIG [+] | set/override config option (use 'section.name=value') | |
--debug | enable debugging output | |
--debugger | start debugger | |
--encoding ENCODE | set the charset encoding (default: ascii) | |
--encodingmode MODE | set the charset encoding mode (default: strict) | |
--traceback | always print a traceback on exception | |
--time | time how long the command takes | |
--profile | print command execution profile | |
--version | output version information and exit | |
-h | --help | display help and exit |
--hidden | consider hidden changesets |
[+] marked option can be specified multiple times