comparison 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
comparison
equal deleted inserted replaced
8694:ca8d05e1f1d1 8695:9a89253a32e6
60 echo 'xxx2' >> b 60 echo 'xxx2' >> b
61 hg commit -d '8 0' -m 'adding head to branch b' 61 hg commit -d '8 0' -m 'adding head to branch b'
62 echo 'xxx3' >> b 62 echo 'xxx3' >> b
63 hg commit -d '9 0' -m 'adding another cset to branch b' 63 hg commit -d '9 0' -m 'adding another cset to branch b'
64 hg branches 64 hg branches
65 hg heads --closed
65 hg heads 66 hg heads
66 hg heads -a
67 hg commit -d '9 0' --close-branch -m 'prune bad branch' 67 hg commit -d '9 0' --close-branch -m 'prune bad branch'
68 hg branches -a 68 hg branches -a
69 hg up -C b 69 hg up -C b
70 hg commit -d '9 0' --close-branch -m 'close this part branch too' 70 hg commit -d '9 0' --close-branch -m 'close this part branch too'
71 echo '--- b branch should be inactive' 71 echo '--- b branch should be inactive'
73 hg branches -a 73 hg branches -a
74 echo 'xxx4' >> b 74 echo 'xxx4' >> b
75 hg commit -d '9 0' -m 'reopen branch with a change' 75 hg commit -d '9 0' -m 'reopen branch with a change'
76 echo '--- branch b is back in action' 76 echo '--- branch b is back in action'
77 hg branches -a 77 hg branches -a
78 hg heads -c
78 hg heads 79 hg heads
79 hg heads -a