Mercurial > public > mercurial-scm > hg
diff 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 |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Mar 09 16:03:57 2010 +0100 +++ b/mercurial/commands.py Tue Mar 09 20:38:23 2010 +0100 @@ -564,6 +564,10 @@ revs, checkout = hg.addbranchrevs(repo, other, branches, revs) o = repo.findoutgoing(other, force=opts.get('force')) + if not o: + ui.status(_("no changes found\n")) + return + if revs: cg = repo.changegroupsubset(o, revs, 'bundle') else: