[PATCH] Add --all option to bundle command
John Mulligan
phlogistonjohn at asynchrono.us
Thu Feb 21 17:56:26 CST 2008
This patch implements a the ability to run 'hg bundle --all FILE', as hashed
out in the "A mercurial pack extension" thread.
# HG changeset patch
# User John Mulligan <phlogistonjohn at yahoo.com>
# Date 1203600298 18000
# Node ID c9262155464dbf91d88272ae2cf3c1d53d339294
# Parent 8bc4fe428103ab2b5a332b9c92589247b7f455e5
Add --all option to bundle command
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -411,7 +411,10 @@
revs = opts.get('rev') or None
if revs:
revs = [repo.lookup(rev) for rev in revs]
- base = opts.get('base')
+ if opts.get('all'):
+ base = ['null']
+ else:
+ base = opts.get('base')
if base:
if dest:
raise util.Abort(_("--base is incompatible with specifiying "
@@ -2802,8 +2805,10 @@
_('a changeset you would like to bundle')),
('', 'base', [],
_('a base changeset to specify instead of a destination')),
+ ('a', 'all', None,
+ _('bundle all changesets in the repository')),
] + remoteopts,
- _('hg bundle [-f] [-r REV]... [--base REV]... FILE [DEST]')),
+ _('hg bundle [-f] [-a] [-r REV]... [--base REV]... FILE [DEST]')),
"cat":
(cat,
[('o', 'output', '', _('print output to file with formatted name')),
More information about the Mercurial
mailing list