mercurial/discovery.py
changeset 32709 16ada4cbb1a9
parent 32708 90cb4ec8df64
child 32789 443e8543a125
equal deleted inserted replaced
32708:90cb4ec8df64 32709:16ada4cbb1a9
   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))