Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 27422:67eeb7421d8d
bundle: fix error for --all with destination
Before it complained about --base
author | timeless <timeless@mozdev.org> |
---|---|
date | Thu, 17 Dec 2015 15:03:45 +0000 |
parents | 930f529b0d5f |
children | c953e26f3734 |
comparison
equal
deleted
inserted
replaced
27421:930f529b0d5f | 27422:67eeb7421d8d |
---|---|
1342 if cgversion == 's1': | 1342 if cgversion == 's1': |
1343 raise error.Abort(_('packed bundles cannot be produced by "hg bundle"'), | 1343 raise error.Abort(_('packed bundles cannot be produced by "hg bundle"'), |
1344 hint=_('use "hg debugcreatestreamclonebundle"')) | 1344 hint=_('use "hg debugcreatestreamclonebundle"')) |
1345 | 1345 |
1346 if opts.get('all'): | 1346 if opts.get('all'): |
1347 if dest: | |
1348 raise error.Abort(_("--all is incompatible with specifying " | |
1349 "a destination")) | |
1347 base = ['null'] | 1350 base = ['null'] |
1348 else: | 1351 else: |
1349 base = scmutil.revrange(repo, opts.get('base')) | 1352 base = scmutil.revrange(repo, opts.get('base')) |
1350 # TODO: get desired bundlecaps from command line. | 1353 # TODO: get desired bundlecaps from command line. |
1351 bundlecaps = None | 1354 bundlecaps = None |