hg branches#
list repository named branches#
hg branches [-c]
List the repository's named branches, indicating which ones are inactive. If -c/--closed is specified, also list branches which have been marked closed (see `hg commit --close-branch`).
Use the command `hg update` to switch to an existing branch.
Template:
The following keywords are supported in addition to the common template
keywords and functions such as {branch}. See also
`hg help templates`.
- active:
Boolean. True if the branch is active.
- closed:
Boolean. True if the branch is closed.
- current:
Boolean. True if it is the current branch.
Returns 0.
Options
Every command accepts the global options.
|
|
show normal and closed branches |
|
|
show branch name(s) of the given rev |
|
|
display with template |
Options marked [+] can be repeated.