##// END OF EJS Templates
Add --all option to bundle command
John Mulligan -
r6171:73b1de28 default
parent child Browse files
Show More
@@ -398,9 +398,10 b' def bundle(ui, repo, fname, dest=None, *'
398 398 Generate a compressed changegroup file collecting changesets not
399 399 found in the other repository.
400 400
401 If no destination repository is specified the destination is assumed
402 to have all the nodes specified by one or more --base parameters.
403 To create a bundle containing all changesets, use --base null.
401 If no destination repository is specified the destination is
402 assumed to have all the nodes specified by one or more --base
403 parameters. To create a bundle containing all changesets, use
404 --all (or --base null).
404 405
405 406 The bundle file can then be transferred using conventional means and
406 407 applied to another repository with the unbundle or pull command.
@@ -413,7 +414,10 b' def bundle(ui, repo, fname, dest=None, *'
413 414 revs = opts.get('rev') or None
414 415 if revs:
415 416 revs = [repo.lookup(rev) for rev in revs]
416 base = opts.get('base')
417 if opts.get('all'):
418 base = ['null']
419 else:
420 base = opts.get('base')
417 421 if base:
418 422 if dest:
419 423 raise util.Abort(_("--base is incompatible with specifiying "
@@ -2812,8 +2816,10 b' table = {'
2812 2816 _('a changeset you would like to bundle')),
2813 2817 ('', 'base', [],
2814 2818 _('a base changeset to specify instead of a destination')),
2819 ('a', 'all', None,
2820 _('bundle all changesets in the repository')),
2815 2821 ] + remoteopts,
2816 _('hg bundle [-f] [-r REV]... [--base REV]... FILE [DEST]')),
2822 _('hg bundle [-f] [-a] [-r REV]... [--base REV]... FILE [DEST]')),
2817 2823 "cat":
2818 2824 (cat,
2819 2825 [('o', 'output', '', _('print output to file with formatted name')),
@@ -32,6 +32,8 b' hg verify'
32 32 cd ..
33 33 hg init empty
34 34
35 echo "====== Bundle --all"
36 hg -R test bundle --all all.hg
35 37 echo "====== Bundle test to full.hg"
36 38 hg -R test bundle full.hg empty
37 39 echo "====== Unbundle full.hg in test"
@@ -6,6 +6,8 b' checking manifests'
6 6 crosschecking files in changesets and manifests
7 7 checking files
8 8 4 files, 9 changesets, 7 total revisions
9 ====== Bundle --all
10 9 changesets found
9 11 ====== Bundle test to full.hg
10 12 searching for changes
11 13 9 changesets found
General Comments 0
You need to be logged in to leave comments. Login now