equal
deleted
inserted
replaced
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']) |