equal
deleted
inserted
replaced
330 |
330 |
331 if remote.capable('branchmap'): |
331 if remote.capable('branchmap'): |
332 headssum = _headssummary(pushop) |
332 headssum = _headssummary(pushop) |
333 else: |
333 else: |
334 headssum = _oldheadssummary(repo, remoteheads, outgoing, inc) |
334 headssum = _oldheadssummary(repo, remoteheads, outgoing, inc) |
|
335 pushop.pushbranchmap = headssum |
335 newbranches = [branch for branch, heads in headssum.iteritems() |
336 newbranches = [branch for branch, heads in headssum.iteritems() |
336 if heads[0] is None] |
337 if heads[0] is None] |
337 # 1. Check for new branches on the remote. |
338 # 1. Check for new branches on the remote. |
338 if newbranches and not newbranch: # new branch requires --new-branch |
339 if newbranches and not newbranch: # new branch requires --new-branch |
339 branchnames = ', '.join(sorted(newbranches)) |
340 branchnames = ', '.join(sorted(newbranches)) |