##// END OF EJS Templates
bundle: avoid crash when no good changegroup version found...
Martin von Zweigbergk -
r28669:c4b72779 default
parent child Browse files
Show More
@@ -1399,6 +1399,10 b' def bundle(ui, repo, fname, dest=None, *'
1399 base = scmutil.revrange(repo, opts.get('base'))
1399 base = scmutil.revrange(repo, opts.get('base'))
1400 # TODO: get desired bundlecaps from command line.
1400 # TODO: get desired bundlecaps from command line.
1401 bundlecaps = None
1401 bundlecaps = None
1402 if cgversion not in changegroup.supportedoutgoingversions(repo):
1403 raise error.Abort(_("repository does not support bundle version %s") %
1404 cgversion)
1405
1402 if base:
1406 if base:
1403 if dest:
1407 if dest:
1404 raise error.Abort(_("--base is incompatible with specifying "
1408 raise error.Abort(_("--base is incompatible with specifying "
@@ -736,3 +736,9 b' Packed bundle'
736 bundle requirements: generaldelta, revlogv1, treemanifest
736 bundle requirements: generaldelta, revlogv1, treemanifest
737 $ hg debugbundle --spec repo-packed.hg
737 $ hg debugbundle --spec repo-packed.hg
738 none-packed1;requirements%3Dgeneraldelta%2Crevlogv1%2Ctreemanifest
738 none-packed1;requirements%3Dgeneraldelta%2Crevlogv1%2Ctreemanifest
739
740 Bundle with changegroup2 is not supported
741
742 $ hg -R deeprepo bundle --all -t v2 deeprepo.bundle
743 abort: repository does not support bundle version 02
744 [255]
General Comments 0
You need to be logged in to leave comments. Login now