[issue1893] hg heads --active shows heads on closed branches

Eric Haszlakiewicz bugs at mercurial.selenic.com
Fri Oct 30 20:59:44 UTC 2009


New submission from Eric Haszlakiewicz <ehaszla at transunion.com>:

After closing a branch with "hg ci --close-branch" I expect that "hg heads"
would no longer list it, but it does.  "hg branches" works as expected, and
the help text for "hg heads" has the same wording, so I figured it should do
the same thing.
Example, using version 1.3.1+7cea12e70129:

hg init btest
cd btest
echo foo > file1
hg add file1
hg ci -m rev1
hg branch branchA
# marked working directory as branch branchA
hg ci -m "create branchA"
echo bar >> file1
hg ci -m "change on branchA"
hg up -C -r default
# 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
echo aaa >> file1
hg ci -m "change on default"
# created new head
hg heads
# shows two heads, as expected.
hg up -C branchA
# 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
hg branches
# shows two branches, as expected.
hg ci --close-branch -m "close branchA"
hg branches
# shows one branch, as expected.
hg heads --active
# shows TWO heads, when I expected to see only ONE.

----------
messages: 10859
nosy: erh
priority: bug
status: unread
title: hg heads --active shows heads on closed branches

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue1893>
____________________________________________________



More information about the Mercurial-devel mailing list