mercurial/phases.py
changeset 38682 88efb7d6bcb6
parent 38230 36ba5dba372d
child 38683 ddd2165438cd
--- 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]