[Bug 3992] New: "hg branch" does not show branch head

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Sun Jul 21 16:35:21 CDT 2013


http://bz.selenic.com/show_bug.cgi?id=3992

          Priority: normal
            Bug ID: 3992
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: "hg branch" does not show branch head
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: Nikolaus at rath.org
          Hardware: PC
            Status: UNCONFIRMED
           Version: unspecified
         Component: Mercurial
           Product: Mercurial

If I'm not mistaken, by the definition of "branch head" given by "hg heads
--help", the "feature" branch has a branch head (revision 7e7a605ba2f3),
because the only child of this revision is in a different branch (default).
However, "hg heads" claims that there is no branch head:



$ hg --version
Mercurial Distributed SCM (version 2.6.3)
(see http://mercurial.selenic.com for more information)
[...]

$ hg heads --help
hg heads [-ct] [-r STARTREV] [REV]...

show current repository heads or show branch heads
[...]
    Branch heads are changesets that have no child changeset
    on the same branch.

    If one or more REVs are given, only branch heads on the branches
    associated with the specified changesets are shown. This means that you
    can use "hg heads foo" to see the heads on a branch named "foo".
[...]


$ hg heads feature
no open branch heads found on branches feature

$ hg log -r 7e7a605ba2f3
changeset:   1734:7e7a605ba2f3
branch:      feature

$ hg log -r 'children(7e7a605ba2f3)'
changeset:   1738:66986487b7c2
parent:      1737:fb7e13f9538d
parent:      1734:7e7a605ba2f3
branch:      default


The reposity is available on https://code.google.com/p/s3ql

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list