1371 |
1371 |
1372 if not outgoing.missing: |
1372 if not outgoing.missing: |
1373 scmutil.nochangesfound(ui, repo, not base and outgoing.excluded) |
1373 scmutil.nochangesfound(ui, repo, not base and outgoing.excluded) |
1374 return 1 |
1374 return 1 |
1375 |
1375 |
1376 cg = changegroup.getchangegroup(repo, 'bundle', outgoing, version=cgversion) |
|
1377 |
|
1378 if cgversion == '01': #bundle1 |
1376 if cgversion == '01': #bundle1 |
1379 if bcompression is None: |
1377 if bcompression is None: |
1380 bcompression = 'UN' |
1378 bcompression = 'UN' |
1381 bversion = 'HG10' + bcompression |
1379 bversion = 'HG10' + bcompression |
1382 bcompression = None |
1380 bcompression = None |
1383 elif cgversion in ('02', '03'): |
1381 elif cgversion in ('02', '03'): |
1384 bversion = 'HG20' |
1382 bversion = 'HG20' |
1385 else: |
1383 else: |
1386 raise error.ProgrammingError( |
1384 raise error.ProgrammingError( |
1387 'bundle: unexpected changegroup version %s' % cgversion) |
1385 'bundle: unexpected changegroup version %s' % cgversion) |
|
1386 |
|
1387 cg = changegroup.getchangegroup(repo, 'bundle', outgoing, version=cgversion) |
1388 |
1388 |
1389 # TODO compression options should be derived from bundlespec parsing. |
1389 # TODO compression options should be derived from bundlespec parsing. |
1390 # This is a temporary hack to allow adjusting bundle compression |
1390 # This is a temporary hack to allow adjusting bundle compression |
1391 # level without a) formalizing the bundlespec changes to declare it |
1391 # level without a) formalizing the bundlespec changes to declare it |
1392 # b) introducing a command flag. |
1392 # b) introducing a command flag. |