Comments
Patch
@@ -1788,11 +1788,7 @@
def handlephases(op, inpart):
"""apply phases from bundle part to repo"""
headsbyphase = _readphaseheads(inpart)
- addednodes = []
- for entry in op.records['changegroup']:
- addednodes.extend(entry['addednodes'])
- phases.updatephases(op.repo.unfiltered(), op.gettransaction(), headsbyphase,
- addednodes)
+ phases.updatephases(op.repo.unfiltered(), op.gettransaction(), headsbyphase)
@parthandler('reply:pushkey', ('return', 'in-reply-to'))
def handlepushkeyreply(op, inpart):
@@ -446,7 +446,7 @@
headsbyphase[phase] = [cl.node(r) for r in repo.revs(revset, subset)]
return headsbyphase
-def updatephases(repo, tr, headsbyphase, addednodes):
+def updatephases(repo, tr, headsbyphase):
"""Updates the repo with the given phase heads"""
# Now advance phase boundaries of all but secret phase
for phase in allphases[:-1]: