comparison mercurial/phases.py @ 33460:57a017f79e96

phases: remove trace of addednodes in the 'phase-heads' handling updatephases have no use of the 'addednodes' parameter since 50243c975fc2. However caller are still passing it for nothing, remove the parameter and remove computing of the added nodes in caller.
author Boris Feld <boris.feld@octobus.net>
date Thu, 13 Jul 2017 21:10:55 +0200
parents cf694e6422f0
children 5779d096a696
comparison
equal deleted inserted replaced
33459:67a3204c83c1 33460:57a017f79e96
525 for phase in allphases[:-1]: 525 for phase in allphases[:-1]:
526 revset = "heads(%%ln & %s())" % phasenames[phase] 526 revset = "heads(%%ln & %s())" % phasenames[phase]
527 headsbyphase[phase] = [cl.node(r) for r in repo.revs(revset, subset)] 527 headsbyphase[phase] = [cl.node(r) for r in repo.revs(revset, subset)]
528 return headsbyphase 528 return headsbyphase
529 529
530 def updatephases(repo, tr, headsbyphase, addednodes): 530 def updatephases(repo, tr, headsbyphase):
531 """Updates the repo with the given phase heads""" 531 """Updates the repo with the given phase heads"""
532 # Now advance phase boundaries of all but secret phase 532 # Now advance phase boundaries of all but secret phase
533 for phase in allphases[:-1]: 533 for phase in allphases[:-1]:
534 advanceboundary(repo, tr, phase, headsbyphase[phase]) 534 advanceboundary(repo, tr, phase, headsbyphase[phase])
535 535