##// END OF EJS Templates
exchange: parse requirements from stream clone specification string...
Gregory Szorc -
r26760:a18ee7da default
parent child Browse files
Show More
@@ -124,6 +124,17 b' def parsebundlespec(repo, spec, strict=T'
124 raise error.UnsupportedBundleSpecification(
124 raise error.UnsupportedBundleSpecification(
125 _('%s is not a recognized bundle specification') % spec)
125 _('%s is not a recognized bundle specification') % spec)
126
126
127 # The specification for packed1 can optionally declare the data formats
128 # required to apply it. If we see this metadata, compare against what the
129 # repo supports and error if the bundle isn't compatible.
130 if version == 'packed1' and 'requirements' in params:
131 requirements = set(params['requirements'].split(','))
132 missingreqs = requirements - repo.supportedformats
133 if missingreqs:
134 raise error.UnsupportedBundleSpecification(
135 _('missing support for repository features: %s') %
136 ', '.join(sorted(missingreqs)))
137
127 if not externalnames:
138 if not externalnames:
128 compression = _bundlespeccompressions[compression]
139 compression = _bundlespeccompressions[compression]
129 version = _bundlespeccgversions[version]
140 version = _bundlespeccgversions[version]
General Comments 0
You need to be logged in to leave comments. Login now