[PATCH 1 of 4] do not display closed heads in 'hg heads' by default
John Mulligan
phlogistonjohn at asynchrono.us
Sun May 31 13:11:24 CDT 2009
# HG changeset patch
# User John Mulligan <phlogistonjohn at asynchrono.us>
# Date 1243790351 14400
# Node ID 25fa695f61c983e5880637667b09f801f3383e2f
# Parent 45f626a39def2b1b8f7302453df35e4e929bfaae
do not display closed heads in 'hg heads' by default
add --closed (-c) option to 'hg heads' to show all heads
remove --active (-a) from 'hg heads' as it is obsoleted by --closed
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1319,7 +1319,7 @@
start = repo.lookup(opts['rev'])
else:
start = None
- closed = not opts.get('active')
+ closed = opts.get('closed')
if not branchrevs:
# Assume we're looking repo-wide heads if no revs were specified.
heads = repo.heads(start, closed=closed)
@@ -3238,8 +3238,8 @@
"heads":
(heads,
[('r', 'rev', '', _('show only heads which are descendants of REV')),
- ('a', 'active', False,
- _('show only the active heads from open branches')),
+ ('c', 'closed', False,
+ _('show normal and closed heads')),
] + templateopts,
_('[-r REV] [REV]...')),
"help": (help_, [], _('[TOPIC]')),
More information about the Mercurial-devel
mailing list