diff tests/test-branches @ 8695:9a89253a32e6

heads: show closed heads only when --closed is passed Add a --closed (-c) option to 'hg heads' to show all heads and change the default behavior to refrain from showing fully closed branches. Enhance 'hg heads <branch>' so that: * default: displays normal & inactive heads, not closed heads * --closed: displays normal, inactive & closed heads * --active: displays only normal heads * both --closed and --active: displays normal & closed heads only
author John Mulligan <phlogistonjohn@asynchrono.us>
date Wed, 03 Jun 2009 13:59:38 +0200
parents 8766fee6f225
children 2bcef677a6c3
line wrap: on
line diff
--- a/tests/test-branches	Wed Jun 03 13:42:55 2009 +0200
+++ b/tests/test-branches	Wed Jun 03 13:59:38 2009 +0200
@@ -62,8 +62,8 @@
 echo 'xxx3' >> b
 hg commit -d '9 0' -m 'adding another cset to branch b'
 hg branches
+hg heads --closed
 hg heads
-hg heads -a
 hg commit -d '9 0' --close-branch -m 'prune bad branch'
 hg branches -a
 hg up -C b
@@ -75,5 +75,5 @@
 hg commit -d '9 0' -m 'reopen branch with a change'
 echo '--- branch b is back in action'
 hg branches -a
+hg heads -c
 hg heads
-hg heads -a