comparison mercurial/commands.py @ 10616:65b178f30eae stable

bundle: fix bundle generation for empty changegroup
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 09 Mar 2010 20:38:23 +0100
parents 7648f32713f2
children da7662ea741f 7ce62865d72a
comparison
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')