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