Show More
@@ -1626,6 +1626,8 b' def bundle(ui, repo, fname, *dests, **op' | |||||
1626 | pycompat.bytestr(e), |
|
1626 | pycompat.bytestr(e), | |
1627 | hint=_(b"see 'hg help bundlespec' for supported values for --type"), |
|
1627 | hint=_(b"see 'hg help bundlespec' for supported values for --type"), | |
1628 | ) |
|
1628 | ) | |
|
1629 | ||||
|
1630 | has_changegroup = bundlespec.params.get(b"changegroup", False) | |||
1629 | cgversion = bundlespec.params[b"cg.version"] |
|
1631 | cgversion = bundlespec.params[b"cg.version"] | |
1630 |
|
1632 | |||
1631 | # Packed bundles are a pseudo bundle format for now. |
|
1633 | # Packed bundles are a pseudo bundle format for now. | |
@@ -1662,7 +1664,8 b' def bundle(ui, repo, fname, *dests, **op' | |||||
1662 | base = [nullrev] |
|
1664 | base = [nullrev] | |
1663 | else: |
|
1665 | else: | |
1664 | base = None |
|
1666 | base = None | |
1665 |
|
|
1667 | supported_cg_versions = changegroup.supportedoutgoingversions(repo) | |
|
1668 | if has_changegroup and cgversion not in supported_cg_versions: | |||
1666 | raise error.Abort( |
|
1669 | raise error.Abort( | |
1667 | _(b"repository does not support bundle version %s") % cgversion |
|
1670 | _(b"repository does not support bundle version %s") % cgversion | |
1668 | ) |
|
1671 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now