##// END OF EJS Templates
upgrade: update only requirements if we can...
Pulkit Goyal -
r47097:f2c4224e default
parent child Browse files
Show More
@@ -449,7 +449,7 b' def upgrade(ui, srcrepo, dstrepo, upgrad'
449 449 )
450 450 )
451 451
452 if True:
452 if not upgrade_op.requirements_only:
453 453 with dstrepo.transaction(b'upgrade') as tr:
454 454 _clonerevlogs(
455 455 ui,
@@ -533,6 +533,7 b' def upgrade(ui, srcrepo, dstrepo, upgrad'
533 533 # location. This is simpler.
534 534 backupvfs.unlink(b'store/lock')
535 535 else:
536 pass
536 ui.status(_(b'upgrading repository requirements\n'))
537 scmutil.writereporequirements(srcrepo, upgrade_op.new_requirements)
537 538
538 539 return backuppath
@@ -371,26 +371,8 b' Upgrade'
371 371 repository locked and read-only
372 372 creating temporary repository to stage upgraded data: $TESTTMP/non-share-safe/.hg/upgrade.* (glob)
373 373 (it is safe to interrupt this process any time before data migration completes)
374 migrating 6 total revisions (2 in filelogs, 2 in manifests, 2 in changelog)
375 migrating 626 bytes in store; 271 bytes tracked data
376 migrating 2 filelogs containing 2 revisions (138 bytes in store; 8 bytes tracked data)
377 finished migrating 2 filelog revisions across 2 filelogs; change in size: 0 bytes
378 migrating 1 manifests containing 2 revisions (230 bytes in store; 135 bytes tracked data)
379 finished migrating 2 manifest revisions across 1 manifests; change in size: 0 bytes
380 migrating changelog containing 2 revisions (258 bytes in store; 128 bytes tracked data)
381 finished migrating 2 changelog revisions; change in size: 0 bytes
382 finished migrating 6 total revisions; total change in store size: 0 bytes
383 copying phaseroots
384 data fully upgraded in a temporary repository
385 marking source repository as being upgraded; clients will be unable to read from repository
386 starting in-place swap of repository data
387 replaced files will be backed up at $TESTTMP/non-share-safe/.hg/upgradebackup.* (glob)
388 replacing store...
389 store replacement complete; repository was inconsistent for *s (glob)
390 finalizing requirements file and making repository readable again
374 upgrading repository requirements
391 375 removing temporary repository $TESTTMP/non-share-safe/.hg/upgrade.* (glob)
392 copy of old repository backed up at $TESTTMP/non-share-safe/.hg/upgradebackup.* (glob)
393 the old repository will not be deleted; remove it to free up disk space once the upgraded repository is verified
394 376 repository upgraded to share safe mode, existing shares will still work in old non-safe mode. Re-share existing shares to use them in safe mode New shares will be created in safe mode.
395 377
396 378 $ hg debugrequirements
@@ -475,27 +457,8 b' Test that downgrading works too'
475 457 repository locked and read-only
476 458 creating temporary repository to stage upgraded data: $TESTTMP/non-share-safe/.hg/upgrade.* (glob)
477 459 (it is safe to interrupt this process any time before data migration completes)
478 migrating 6 total revisions (2 in filelogs, 2 in manifests, 2 in changelog)
479 migrating 626 bytes in store; 271 bytes tracked data
480 migrating 2 filelogs containing 2 revisions (138 bytes in store; 8 bytes tracked data)
481 finished migrating 2 filelog revisions across 2 filelogs; change in size: 0 bytes
482 migrating 1 manifests containing 2 revisions (230 bytes in store; 135 bytes tracked data)
483 finished migrating 2 manifest revisions across 1 manifests; change in size: 0 bytes
484 migrating changelog containing 2 revisions (258 bytes in store; 128 bytes tracked data)
485 finished migrating 2 changelog revisions; change in size: 0 bytes
486 finished migrating 6 total revisions; total change in store size: 0 bytes
487 copying phaseroots
488 copying requires
489 data fully upgraded in a temporary repository
490 marking source repository as being upgraded; clients will be unable to read from repository
491 starting in-place swap of repository data
492 replaced files will be backed up at $TESTTMP/non-share-safe/.hg/upgradebackup.* (glob)
493 replacing store...
494 store replacement complete; repository was inconsistent for *s (glob)
495 finalizing requirements file and making repository readable again
460 upgrading repository requirements
496 461 removing temporary repository $TESTTMP/non-share-safe/.hg/upgrade.* (glob)
497 copy of old repository backed up at $TESTTMP/non-share-safe/.hg/upgradebackup.* (glob)
498 the old repository will not be deleted; remove it to free up disk space once the upgraded repository is verified
499 462 repository downgraded to not use share safe mode, existing shares will not work and needs to be reshared.
500 463
501 464 $ hg debugrequirements
General Comments 0
You need to be logged in to leave comments. Login now