##// END OF EJS Templates
bundle: fix bundle generation for empty changegroup
Benoit Boissinot -
r10616:65b178f3 stable
parent child Browse files
Show More
@@ -564,6 +564,10 b' def bundle(ui, repo, fname, dest=None, *'
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
566
567 if not o:
568 ui.status(_("no changes found\n"))
569 return
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:
@@ -72,6 +72,8 b' hg -R test bundle --base 2 -r tip test-b'
72 hg -R test bundle --base 2 -r 7 test-bundle-branch2.hg
72 hg -R test bundle --base 2 -r 7 test-bundle-branch2.hg
73 hg -R test bundle --base 2 test-bundle-all.hg
73 hg -R test bundle --base 2 test-bundle-all.hg
74 hg -R test bundle --base 3 -r tip test-bundle-should-fail.hg
74 hg -R test bundle --base 3 -r tip test-bundle-should-fail.hg
75 # empty bundle
76 hg -R test bundle --base 7 --base 8 test-bundle-empty.hg
75
77
76 # issue76 msg2163
78 # issue76 msg2163
77 hg -R test bundle --base 3 -r 3 -r 3 test-bundle-cset-3.hg
79 hg -R test bundle --base 3 -r 3 -r 3 test-bundle-cset-3.hg
@@ -162,6 +162,7 b' 2 changesets found'
162 4 changesets found
162 4 changesets found
163 6 changesets found
163 6 changesets found
164 1 changesets found
164 1 changesets found
165 no changes found
165 1 changesets found
166 1 changesets found
166 4 changesets found
167 4 changesets found
167 updating to branch default
168 updating to branch default
General Comments 0
You need to be logged in to leave comments. Login now