equal
deleted
inserted
replaced
1179 when the API of bundle is refined. |
1179 when the API of bundle is refined. |
1180 """ |
1180 """ |
1181 # bundle10 case |
1181 # bundle10 case |
1182 usebundle2 = False |
1182 usebundle2 = False |
1183 if bundlecaps is not None: |
1183 if bundlecaps is not None: |
1184 usebundle2 = util.any((cap.startswith('HG2') for cap in bundlecaps)) |
1184 usebundle2 = any((cap.startswith('HG2') for cap in bundlecaps)) |
1185 if not usebundle2: |
1185 if not usebundle2: |
1186 if bundlecaps and not kwargs.get('cg', True): |
1186 if bundlecaps and not kwargs.get('cg', True): |
1187 raise ValueError(_('request for bundle10 must include changegroup')) |
1187 raise ValueError(_('request for bundle10 must include changegroup')) |
1188 |
1188 |
1189 if kwargs: |
1189 if kwargs: |