diff -r 07f1fbf1f758 -r c4b727795d6a mercurial/commands.py --- a/mercurial/commands.py Fri Mar 25 16:13:28 2016 -0700 +++ b/mercurial/commands.py Fri Mar 25 23:05:32 2016 -0700 @@ -1399,6 +1399,10 @@ base = scmutil.revrange(repo, opts.get('base')) # TODO: get desired bundlecaps from command line. bundlecaps = None + if cgversion not in changegroup.supportedoutgoingversions(repo): + raise error.Abort(_("repository does not support bundle version %s") % + cgversion) + if base: if dest: raise error.Abort(_("--base is incompatible with specifying "