mercurial/commands.py
changeset 10617 da7662ea741f
parent 10611 e764f24a45ee
parent 10616 65b178f30eae
child 10629 d3f27d15c9cb
equal deleted inserted replaced
10615:3bb438ce4458 10617:da7662ea741f
   561         dest = ui.expandpath(dest or 'default-push', dest or 'default')
   561         dest = ui.expandpath(dest or 'default-push', dest or 'default')
   562         dest, branches = hg.parseurl(dest, opts.get('branch'))
   562         dest, branches = hg.parseurl(dest, opts.get('branch'))
   563         other = hg.repository(cmdutil.remoteui(repo, opts), dest)
   563         other = hg.repository(cmdutil.remoteui(repo, opts), dest)
   564         revs, checkout = hg.addbranchrevs(repo, other, branches, revs)
   564         revs, checkout = hg.addbranchrevs(repo, other, branches, revs)
   565         o = repo.findoutgoing(other, force=opts.get('force'))
   565         o = repo.findoutgoing(other, force=opts.get('force'))
       
   566 
       
   567     if not o:
       
   568         ui.status(_("no changes found\n"))
       
   569         return
   566 
   570 
   567     if revs:
   571     if revs:
   568         cg = repo.changegroupsubset(o, revs, 'bundle')
   572         cg = repo.changegroupsubset(o, revs, 'bundle')
   569     else:
   573     else:
   570         cg = repo.changegroup(o, 'bundle')
   574         cg = repo.changegroup(o, 'bundle')