comparison mercurial/commands.py @ 10617:da7662ea741f

merge with stable
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 09 Mar 2010 20:47:35 +0100
parents e764f24a45ee 65b178f30eae
children d3f27d15c9cb
comparison
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')