##// END OF EJS Templates
remotephase: fast path newheads computation in simple case (issue5964)...
Boris Feld -
r39181:c89e2fb2 stable
parent child Browse files
Show More
@@ -664,6 +664,8 b' def newheads(repo, heads, roots):'
664
664
665 * `heads`: define the first subset
665 * `heads`: define the first subset
666 * `roots`: define the second we subtract from the first"""
666 * `roots`: define the second we subtract from the first"""
667 if not heads or not roots:
668 return heads
667 repo = repo.unfiltered()
669 repo = repo.unfiltered()
668 revs = repo.revs('heads(::%ln - (%ln::%ln))', heads, roots, heads)
670 revs = repo.revs('heads(::%ln - (%ln::%ln))', heads, roots, heads)
669 return pycompat.maplist(repo.changelog.node, revs)
671 return pycompat.maplist(repo.changelog.node, revs)
General Comments 0
You need to be logged in to leave comments. Login now