375 hookargs['node'] = hex(cl.node(clstart)) |
375 hookargs['node'] = hex(cl.node(clstart)) |
376 hookargs['node_last'] = hex(cl.node(clend - 1)) |
376 hookargs['node_last'] = hex(cl.node(clend - 1)) |
377 repo.hook('pretxnchangegroup', throw=True, **hookargs) |
377 repo.hook('pretxnchangegroup', throw=True, **hookargs) |
378 |
378 |
379 added = [cl.node(r) for r in xrange(clstart, clend)] |
379 added = [cl.node(r) for r in xrange(clstart, clend)] |
380 publishing = repo.publishing() |
|
381 if srctype in ('push', 'serve'): |
380 if srctype in ('push', 'serve'): |
382 # Old servers can not push the boundary themselves. |
381 # Old servers can not push the boundary themselves. |
383 # New servers won't push the boundary if changeset already |
382 # New servers won't push the boundary if changeset already |
384 # exists locally as secret |
383 # exists locally as secret |
385 # |
384 # |
386 # We should not use added here but the list of all change in |
385 # We should not use added here but the list of all change in |
387 # the bundle |
386 # the bundle |
388 if publishing: |
387 if repo.publishing(): |
389 phases.advanceboundary(repo, tr, phases.public, cgnodes) |
388 phases.advanceboundary(repo, tr, phases.public, cgnodes) |
390 else: |
389 else: |
391 # Those changesets have been pushed from the |
390 # Those changesets have been pushed from the |
392 # outside, their phases are going to be pushed |
391 # outside, their phases are going to be pushed |
393 # alongside. Therefor `targetphase` is |
392 # alongside. Therefor `targetphase` is |