Mercurial > hg
comparison tests/test-branches @ 8796:2bcef677a6c3
localrepo: remove 'closed' argument to heads(...) function
- repository heads are not associated with the closed attribute, so
remove it making the code in line with the concept.
- Fix functions that were calling heads with the parameter.
- Adjust webcommands.branches to include the concept of inactive
as well as open and closed branches
- Fix code and docstrings in commands to make the correct use of
closed branches & branch heads clearer
- Improve grammar of 'hg heads' help text (2nd submission)
this does not alter the cli for hg branches, that work is
still to be done
author | John Mulligan <phlogistonjohn@asynchrono.us> |
---|---|
date | Wed, 10 Jun 2009 19:11:49 -0400 |
parents | 9a89253a32e6 |
children | 7e0b31dfc66f |
comparison
equal
deleted
inserted
replaced
8795:51c29aec0b75 | 8796:2bcef677a6c3 |
---|---|
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' |
72 hg branches | 72 hg branches |
73 hg branches -a | 73 hg branches -a |
74 hg heads b | |
75 hg heads --closed b | |
74 echo 'xxx4' >> b | 76 echo 'xxx4' >> b |
75 hg commit -d '9 0' -m 'reopen branch with a change' | 77 hg commit -d '9 0' -m 'reopen branch with a change' |
76 echo '--- branch b is back in action' | 78 echo '--- branch b is back in action' |
77 hg branches -a | 79 hg branches -a |
78 hg heads -c | 80 echo '---- test heads listings' |
79 hg heads | 81 hg heads |
82 echo '% branch default' | |
83 hg heads default | |
84 echo '% branch a' | |
85 hg heads a | |
86 hg heads --active a | |
87 echo '% branch b' | |
88 hg heads b | |
89 hg heads --closed b |