Mercurial > hg
comparison tests/test-share-safe.t @ 48448:62e6222cc5b6
upgrade: only process revlogs that needs it by default
We have more and more requirement that does not affect revlog or that only
affect some of them. It is silly to force a full processing of all revlog to
juste move the requirement around, or to simply rewrite the dirstate.
So now, only the revlog that needs to be touched will be touched. Unless the
--changelog & al flags are used.
Differential Revision: https://phab.mercurial-scm.org/D11871
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 06 Dec 2021 17:54:39 +0100 |
parents | f35529784079 |
children | e845537f6adb |
comparison
equal
deleted
inserted
replaced
48447:8405c1bffacf | 48448:62e6222cc5b6 |
---|---|
361 requirements | 361 requirements |
362 preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store (no-dirstate-v2 !) | 362 preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store (no-dirstate-v2 !) |
363 preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) | 363 preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) |
364 added: share-safe | 364 added: share-safe |
365 | 365 |
366 processed revlogs: | 366 no revlogs to process |
367 - all-filelogs | |
368 - changelog | |
369 - manifest | |
370 | 367 |
371 $ hg debugupgraderepo --run | 368 $ hg debugupgraderepo --run |
372 upgrade will perform the following actions: | 369 upgrade will perform the following actions: |
373 | 370 |
374 requirements | 371 requirements |
377 added: share-safe | 374 added: share-safe |
378 | 375 |
379 share-safe | 376 share-safe |
380 Upgrades a repository to share-safe format so that future shares of this repository share its requirements and configs. | 377 Upgrades a repository to share-safe format so that future shares of this repository share its requirements and configs. |
381 | 378 |
382 processed revlogs: | 379 no revlogs to process |
383 - all-filelogs | |
384 - changelog | |
385 - manifest | |
386 | 380 |
387 beginning upgrade... | 381 beginning upgrade... |
388 repository locked and read-only | 382 repository locked and read-only |
389 creating temporary repository to stage upgraded data: $TESTTMP/non-share-safe/.hg/upgrade.* (glob) | 383 creating temporary repository to stage upgraded data: $TESTTMP/non-share-safe/.hg/upgrade.* (glob) |
390 (it is safe to interrupt this process any time before data migration completes) | 384 (it is safe to interrupt this process any time before data migration completes) |
455 requirements | 449 requirements |
456 preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store (no-dirstate-v2 !) | 450 preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store (no-dirstate-v2 !) |
457 preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) | 451 preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) |
458 removed: share-safe | 452 removed: share-safe |
459 | 453 |
460 processed revlogs: | 454 no revlogs to process |
461 - all-filelogs | |
462 - changelog | |
463 - manifest | |
464 | 455 |
465 $ hg debugupgraderepo --run | 456 $ hg debugupgraderepo --run |
466 upgrade will perform the following actions: | 457 upgrade will perform the following actions: |
467 | 458 |
468 requirements | 459 requirements |
469 preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store (no-dirstate-v2 !) | 460 preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store (no-dirstate-v2 !) |
470 preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) | 461 preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) |
471 removed: share-safe | 462 removed: share-safe |
472 | 463 |
473 processed revlogs: | 464 no revlogs to process |
474 - all-filelogs | |
475 - changelog | |
476 - manifest | |
477 | 465 |
478 beginning upgrade... | 466 beginning upgrade... |
479 repository locked and read-only | 467 repository locked and read-only |
480 creating temporary repository to stage upgraded data: $TESTTMP/non-share-safe/.hg/upgrade.* (glob) | 468 creating temporary repository to stage upgraded data: $TESTTMP/non-share-safe/.hg/upgrade.* (glob) |
481 (it is safe to interrupt this process any time before data migration completes) | 469 (it is safe to interrupt this process any time before data migration completes) |
554 requirements | 542 requirements |
555 preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store (no-dirstate-v2 !) | 543 preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store (no-dirstate-v2 !) |
556 preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) | 544 preserved: dotencode, exp-rc-dirstate-v2, fncache, generaldelta, revlogv1, sparserevlog, store (dirstate-v2 !) |
557 added: share-safe | 545 added: share-safe |
558 | 546 |
559 processed revlogs: | 547 no revlogs to process |
560 - all-filelogs | |
561 - changelog | |
562 - manifest | |
563 | 548 |
564 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. | 549 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. |
565 $ hg debugrequirements | 550 $ hg debugrequirements |
566 dotencode | 551 dotencode |
567 dirstate-v2 (dirstate-v2 !) | 552 dirstate-v2 (dirstate-v2 !) |