##// END OF EJS Templates
phases: micro-optimize newheads() to not create context objects
Yuya Nishihara -
r38705:ddd21654 default
parent child Browse files
Show More
@@ -665,9 +665,8 b' def newheads(repo, heads, roots):'
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 repo = repo.unfiltered()
667 repo = repo.unfiltered()
668 revset = repo.set('heads(::%ln - (%ln::%ln))', heads, roots, heads)
668 revs = repo.revs('heads(::%ln - (%ln::%ln))', heads, roots, heads)
669 return [c.node() for c in revset]
669 return pycompat.maplist(repo.changelog.node, revs)
670
671
670
672 def newcommitphase(ui):
671 def newcommitphase(ui):
673 """helper to get the target phase of new commit
672 """helper to get the target phase of new commit
General Comments 0
You need to be logged in to leave comments. Login now