Mercurial > hg-stable
diff 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 |
line wrap: on
line diff
--- a/tests/test-branches Mon Jun 08 20:02:44 2009 +0200 +++ b/tests/test-branches Wed Jun 10 19:11:49 2009 -0400 @@ -71,9 +71,19 @@ echo '--- b branch should be inactive' hg branches hg branches -a +hg heads b +hg heads --closed b echo 'xxx4' >> b hg commit -d '9 0' -m 'reopen branch with a change' echo '--- branch b is back in action' hg branches -a -hg heads -c +echo '---- test heads listings' hg heads +echo '% branch default' +hg heads default +echo '% branch a' +hg heads a +hg heads --active a +echo '% branch b' +hg heads b +hg heads --closed b