mercurial/commands.py
branchstable
changeset 10616 65b178f30eae
parent 10596 7648f32713f2
child 10617 da7662ea741f
child 10637 7ce62865d72a
equal deleted inserted replaced
10612:30553ac3e355 10616:65b178f30eae
   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')