Mercurial > public > mercurial-scm > hg
comparison mercurial/bundle2.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 | e3867c712d51 |
children | bb72031f0ea8 |
comparison
equal
deleted
inserted
replaced
33459:67a3204c83c1 | 33460:57a017f79e96 |
---|---|
1786 | 1786 |
1787 @parthandler('phase-heads') | 1787 @parthandler('phase-heads') |
1788 def handlephases(op, inpart): | 1788 def handlephases(op, inpart): |
1789 """apply phases from bundle part to repo""" | 1789 """apply phases from bundle part to repo""" |
1790 headsbyphase = _readphaseheads(inpart) | 1790 headsbyphase = _readphaseheads(inpart) |
1791 addednodes = [] | 1791 phases.updatephases(op.repo.unfiltered(), op.gettransaction(), headsbyphase) |
1792 for entry in op.records['changegroup']: | |
1793 addednodes.extend(entry['addednodes']) | |
1794 phases.updatephases(op.repo.unfiltered(), op.gettransaction(), headsbyphase, | |
1795 addednodes) | |
1796 | 1792 |
1797 @parthandler('reply:pushkey', ('return', 'in-reply-to')) | 1793 @parthandler('reply:pushkey', ('return', 'in-reply-to')) |
1798 def handlepushkeyreply(op, inpart): | 1794 def handlepushkeyreply(op, inpart): |
1799 """retrieve the result of a pushkey request""" | 1795 """retrieve the result of a pushkey request""" |
1800 ret = int(inpart.params['return']) | 1796 ret = int(inpart.params['return']) |