diff -r 8eeed92475d5 -r 88efb7d6bcb6 mercurial/phases.py --- a/mercurial/phases.py Sun Jul 15 15:48:18 2018 +0530 +++ b/mercurial/phases.py Sat Jul 14 13:19:18 2018 +0900 @@ -665,8 +665,7 @@ * `heads`: define the first subset * `roots`: define the second we subtract from the first""" repo = repo.unfiltered() - revset = repo.set('heads((%ln + parents(%ln)) - (%ln::%ln))', - heads, roots, roots, heads) + revset = repo.set('heads(::%ln - (%ln::%ln))', heads, roots, heads) return [c.node() for c in revset]