return _with_groups(g, out) if out else ''
+ quiet = _get_filter('quiet', g)
+ p = repo[None].parents()
+ branch = repo.dirstate.branch()
+ closed = (p.extra().get('close')
+ and pn in repo.branchheads(branch, closed=True))
+ out = 'X' if (not quiet) and closed else ''
+ return _with_groups(g, out) if out else ''
'count(\|[^%s]*?)?' % brackets[-1]: _count,
+ 'closed(\|quiet)?': _closed,
Display the current branch only if it is not the default branch.
+ Display `X` if working on a closed branch (i.e. committing now would reopen
Display the number of revisions in the given revset (the revset `all()`
will be used if none is given).