hgext/fetch.py
branchstable
changeset 15749 6b84cdcb05b9
parent 15748 6eb5bbaa1e73
child 16091 f6e9c731dd3f
equal deleted inserted replaced
15748:6eb5bbaa1e73 15749:6b84cdcb05b9
   100             ui.status(_('not merging with %d other new branch heads '
   100             ui.status(_('not merging with %d other new branch heads '
   101                         '(use "hg heads ." and "hg merge" to merge them)\n') %
   101                         '(use "hg heads ." and "hg merge" to merge them)\n') %
   102                       (len(newheads) - 1))
   102                       (len(newheads) - 1))
   103             return 1
   103             return 1
   104 
   104 
       
   105         if not newheads:
       
   106             return 0
       
   107 
   105         # Otherwise, let's merge.
   108         # Otherwise, let's merge.
   106         err = False
   109         err = False
   107         if newheads:
   110         if newheads:
   108             # By default, we consider the repository we're pulling
   111             # By default, we consider the repository we're pulling
   109             # *from* as authoritative, so we merge our changes into
   112             # *from* as authoritative, so we merge our changes into