diff -r 92d67e5729b9 -r b13fdcc4e700 mercurial/commands.py --- a/mercurial/commands.py Tue Oct 13 11:43:21 2015 -0700 +++ b/mercurial/commands.py Tue Oct 13 10:57:54 2015 -0700 @@ -1242,7 +1242,13 @@ revs = scmutil.revrange(repo, opts['rev']) bundletype = opts.get('type', 'bzip2').lower() - cgversion, bcompression = exchange.parsebundlespec(repo, bundletype) + try: + bcompression, cgversion = exchange.parsebundlespec( + repo, bundletype, strict=False) + except error.UnsupportedBundleSpecification as e: + raise error.Abort(str(e), + hint=_('see "hg help bundle" for supported ' + 'values for --type')) if opts.get('all'): base = ['null']