https://bz.mercurial-scm.org/show_bug.cgi?id=6171
Bug ID: 6171 Summary: 'hg heads' command improperly handles revset Product: Mercurial Version: stable branch Hardware: PC OS: Linux Status: UNCONFIRMED Severity: bug Priority: wish Component: Mercurial Assignee: bugzi...@mercurial-scm.org Reporter: jwde...@gmail.com CC: mercurial-devel@mercurial-scm.org The output of "hg heads -r 'all()'" differs from that of "hg log -r 'heads(all())'" Simple repro: # First, set up a tiny 2-head repo: $ hg ini repo-with-two-heads $ cd repo-with-two-heads/ $ touch foo $ hg ci -A -m "added empty foo" adding foo $ echo "some changes xxx" >> foo $ hg ci -m "Made changes xxx" $ hg up 0 1 files updated, 0 files merged, 0 files removed, 0 files unresolved $ hg ci -m "Made changes yyy" $ echo "some changes yyy" >> foo created new head # Normal use of 'heads' works as expected: $ hg heads changeset: 2:6134f24d60f4 tag: tip parent: 0:390b17bba252 user: myuser date: Thu Jul 11 14:27:08 2019 -0700 summary: Made changes yyy changeset: 1:2222a8577a80 user: myuser date: Thu Jul 11 14:26:54 2019 -0700 summary: Made changes xxx # Here is the bug - only one head shown: $ hg heads -r 'all()' changeset: 2:6134f24d60f4 tag: tip parent: 0:390b17bba252 user: myuser date: Thu Jul 11 14:27:08 2019 -0700 summary: Made changes yyy # Compare this with using 'log' to accomplish the same: $ hg log -r 'heads(all())' changeset: 1:2222a8577a80 user: myuser date: Thu Jul 11 14:26:54 2019 -0700 summary: Made changes xxx changeset: 2:6134f24d60f4 tag: tip parent: 0:390b17bba252 user: myuser date: Thu Jul 11 14:27:08 2019 -0700 summary: Made changes yyy Note: the original "heads -r ..." functionality was added here: https://bz.mercurial-scm.org/show_bug.cgi?id=65 -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel