Show More
@@ -449,7 +449,10 b' def upgrade(ui, srcrepo, dstrepo, upgrad' | |||||
449 | ) |
|
449 | ) | |
450 | ) |
|
450 | ) | |
451 |
|
451 | |||
452 |
if |
|
452 | if upgrade_op.requirements_only: | |
|
453 | ui.status(_(b'upgrading repository requirements\n')) | |||
|
454 | scmutil.writereporequirements(srcrepo, upgrade_op.new_requirements) | |||
|
455 | else: | |||
453 | with dstrepo.transaction(b'upgrade') as tr: |
|
456 | with dstrepo.transaction(b'upgrade') as tr: | |
454 | _clonerevlogs( |
|
457 | _clonerevlogs( | |
455 | ui, |
|
458 | ui, | |
@@ -532,8 +535,5 b' def upgrade(ui, srcrepo, dstrepo, upgrad' | |||||
532 | # could update srcrepo.svfs and other variables to point to the new |
|
535 | # could update srcrepo.svfs and other variables to point to the new | |
533 | # location. This is simpler. |
|
536 | # location. This is simpler. | |
534 | backupvfs.unlink(b'store/lock') |
|
537 | backupvfs.unlink(b'store/lock') | |
535 | else: |
|
|||
536 | ui.status(_(b'upgrading repository requirements\n')) |
|
|||
537 | scmutil.writereporequirements(srcrepo, upgrade_op.new_requirements) |
|
|||
538 |
|
538 | |||
539 | return backuppath |
|
539 | return backuppath |
General Comments 0
You need to be logged in to leave comments.
Login now