Comments
Patch
@@ -575,11 +575,16 @@ def _pushsyncphase(pushop):
% newremotehead)
def _localphasemove(pushop, nodes, phase=phases.public):
"""move <nodes> to <phase> in the local source repo"""
if pushop.locallocked:
- phases.advanceboundary(pushop.repo, phase, nodes)
+ tr = pushop.repo.transaction('push-phase-sync')
+ try:
+ phases.advanceboundary(pushop.repo, phase, nodes)
+ tr.close()
+ finally:
+ tr.release()
else:
# repo is not locked, do not change any phases!
# Informs the user that phases should have been moved when
# applicable.
actualmoves = [n for n in nodes if phase < pushop.repo[n].phase()]