##// END OF EJS Templates
branching: merge stable into default
branching: merge stable into default

File last commit:

r51579:a41eeb87 merge default
r51611:0ab39565 merge default
Show More
test-upgrade-repo.t
2103 lines | 81.1 KiB | text/troff | Tads3Lexer
/ tests / test-upgrade-repo.t
Gregory Szorc
tests: conditionalize tests based on presence of revlogs for files...
r37356 #require no-reposimplestore
Gregory Szorc
repair: implement requirements checking for upgrades...
r30775 $ cat >> $HGRCPATH << EOF
> [extensions]
> share =
test: explicitly use zlib compression in tests/test-upgrade-repo.t...
r47608 > [format]
> # stabilize test accross variant
> revlog-compression=zlib
upgrade: make dirstate-v2 format variant compatible with share...
r49629 > [storage]
> dirstate-v2.slow-path=allow
Gregory Szorc
repair: implement requirements checking for upgrades...
r30775 > EOF
store and revlogv1 are required in source
$ hg --config format.usestore=false init no-store
$ hg -R no-store debugupgraderepo
abort: cannot upgrade repository; requirement missing: store
[255]
$ hg init no-revlogv1
$ cat > no-revlogv1/.hg/requires << EOF
> dotencode
> fncache
> generaldelta
> store
> EOF
$ hg -R no-revlogv1 debugupgraderepo
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 abort: cannot upgrade repository; missing a revlog version
Gregory Szorc
debugcommands: stub for debugupgraderepo command...
r30774 [255]
Gregory Szorc
repair: implement requirements checking for upgrades...
r30775
Cannot upgrade shared repositories
$ hg init share-parent
upgrade: make dirstate-v2 format variant compatible with share...
r49629 $ hg -R share-parent debugbuilddag -n .+9
$ hg -R share-parent up tip
10 files updated, 0 files merged, 0 files removed, 0 files unresolved
Gregory Szorc
repair: implement requirements checking for upgrades...
r30775 $ hg -q share share-parent share-child
upgrade: prepare code (and output) for the idea of upgrading share...
r49628 $ hg -R share-child debugupgraderepo --config format.sparse-revlog=no
abort: cannot use these actions on a share repository: sparserevlog
(upgrade the main repository directly)
Gregory Szorc
repair: implement requirements checking for upgrades...
r30775 [255]
upgrade: make dirstate-v2 format variant compatible with share...
r49629 Unless the action is compatible with share
$ hg -R share-child debugupgraderepo --config format.use-dirstate-v2=yes --quiet
requirements
preserved: * (glob)
added: dirstate-v2
no revlogs to process
$ hg -R share-child debugupgraderepo --config format.use-dirstate-v2=yes --quiet --run
upgrade will perform the following actions:
requirements
preserved: * (glob)
added: dirstate-v2
no revlogs to process
$ hg debugformat -R share-child | grep dirstate-v2
dirstate-v2: yes
$ hg debugformat -R share-parent | grep dirstate-v2
dirstate-v2: no
$ hg status --all -R share-child
C nf0
C nf1
C nf2
C nf3
C nf4
C nf5
C nf6
C nf7
C nf8
C nf9
$ hg log -l 3 -R share-child
changeset: 9:0059eb38e4a4
tag: tip
user: debugbuilddag
date: Thu Jan 01 00:00:09 1970 +0000
summary: r9
changeset: 8:4d5be70c8130
user: debugbuilddag
date: Thu Jan 01 00:00:08 1970 +0000
summary: r8
changeset: 7:e60bfe72517e
user: debugbuilddag
date: Thu Jan 01 00:00:07 1970 +0000
summary: r7
$ hg status --all -R share-parent
C nf0
C nf1
C nf2
C nf3
C nf4
C nf5
C nf6
C nf7
C nf8
C nf9
$ hg log -l 3 -R share-parent
changeset: 9:0059eb38e4a4
tag: tip
user: debugbuilddag
date: Thu Jan 01 00:00:09 1970 +0000
summary: r9
changeset: 8:4d5be70c8130
user: debugbuilddag
date: Thu Jan 01 00:00:08 1970 +0000
summary: r8
changeset: 7:e60bfe72517e
user: debugbuilddag
date: Thu Jan 01 00:00:07 1970 +0000
summary: r7
$ hg -R share-child debugupgraderepo --config format.use-dirstate-v2=no --quiet --run
upgrade will perform the following actions:
requirements
preserved: * (glob)
removed: dirstate-v2
no revlogs to process
$ hg debugformat -R share-child | grep dirstate-v2
dirstate-v2: no
$ hg debugformat -R share-parent | grep dirstate-v2
dirstate-v2: no
$ hg status --all -R share-child
C nf0
C nf1
C nf2
C nf3
C nf4
C nf5
C nf6
C nf7
C nf8
C nf9
$ hg log -l 3 -R share-child
changeset: 9:0059eb38e4a4
tag: tip
user: debugbuilddag
date: Thu Jan 01 00:00:09 1970 +0000
summary: r9
changeset: 8:4d5be70c8130
user: debugbuilddag
date: Thu Jan 01 00:00:08 1970 +0000
summary: r8
changeset: 7:e60bfe72517e
user: debugbuilddag
date: Thu Jan 01 00:00:07 1970 +0000
summary: r7
$ hg status --all -R share-parent
C nf0
C nf1
C nf2
C nf3
C nf4
C nf5
C nf6
C nf7
C nf8
C nf9
$ hg log -l 3 -R share-parent
changeset: 9:0059eb38e4a4
tag: tip
user: debugbuilddag
date: Thu Jan 01 00:00:09 1970 +0000
summary: r9
changeset: 8:4d5be70c8130
user: debugbuilddag
date: Thu Jan 01 00:00:08 1970 +0000
summary: r8
changeset: 7:e60bfe72517e
user: debugbuilddag
date: Thu Jan 01 00:00:07 1970 +0000
summary: r7
upgrade: prepare code (and output) for the idea of upgrading share...
r49628
branching: merge with stable
r51579 Do not yet support downgrading treemanifest repos
Gregory Szorc
repair: implement requirements checking for upgrades...
r30775
$ hg --config experimental.treemanifest=true init treemanifest
$ hg -R treemanifest debugupgraderepo
branching: merge with stable
r51579 abort: cannot upgrade repository; requirement would be removed: treemanifest
Gregory Szorc
repair: implement requirements checking for upgrades...
r30775 [255]
Augie Fackler
cleanup: say goodbye to manifestv2 format...
r36391 Cannot add treemanifest requirement during upgrade
Gregory Szorc
repair: implement requirements checking for upgrades...
r30775
$ hg init disallowaddedreq
Augie Fackler
cleanup: say goodbye to manifestv2 format...
r36391 $ hg -R disallowaddedreq --config experimental.treemanifest=true debugupgraderepo
abort: cannot upgrade repository; do not support adding requirement: treemanifest
Gregory Szorc
repair: implement requirements checking for upgrades...
r30775 [255]
Gregory Szorc
repair: determine what upgrade will do...
r30776
An upgrade of a repository created with recommended settings only suggests optimizations
$ hg init empty
$ cd empty
Boris Feld
debugformat: add a 'debugformat' command...
r35337 $ hg debugformat
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo
fncache: yes
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: no
tracked-key: remove the dual write and rename to tracked-hint...
r49644 tracked-hint: no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 dotencode: yes
generaldelta: yes
share-safe: enable by default (BC)...
r49515 share-safe: yes
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no (no-rust !)
persistent-nodemap: yes (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes
compression: zlib
compression-level: default
Boris Feld
debugformat: add data about the config when verbose...
r35338 $ hg debugformat --verbose
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
fncache: yes yes yes
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: no no no
tracked-key: remove the dual write and rename to tracked-hint...
r49644 tracked-hint: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 dotencode: yes yes yes
generaldelta: yes yes yes
share-safe: enable by default (BC)...
r49515 share-safe: yes yes yes
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: yes yes yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no no no (no-rust !)
persistent-nodemap: yes yes no (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no no no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: no no no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes yes yes
revlog-compression: use zstd by default (if available)...
r47636 compression: zlib zlib zlib (no-zstd !)
compression: zlib zlib zstd (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 compression-level: default default default
Boris Feld
test: fix config typo in test-upgrade-repo.t...
r40919 $ hg debugformat --verbose --config format.usefncache=no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
fncache: yes no yes
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: no no no
tracked-key: remove the dual write and rename to tracked-hint...
r49644 tracked-hint: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 dotencode: yes no yes
generaldelta: yes yes yes
share-safe: enable by default (BC)...
r49515 share-safe: yes yes yes
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: yes yes yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no no no (no-rust !)
persistent-nodemap: yes yes no (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no no no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: no no no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes yes yes
revlog-compression: use zstd by default (if available)...
r47636 compression: zlib zlib zlib (no-zstd !)
compression: zlib zlib zstd (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 compression-level: default default default
Boris Feld
test: fix config typo in test-upgrade-repo.t...
r40919 $ hg debugformat --verbose --config format.usefncache=no --color=debug
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
[formatvariant.name.mismatchconfig|fncache: ][formatvariant.repo.mismatchconfig| yes][formatvariant.config.special| no][formatvariant.default| yes]
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 [formatvariant.name.uptodate|dirstate-v2: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
tracked-key: remove the dual write and rename to tracked-hint...
r49644 [formatvariant.name.uptodate|tracked-hint: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 [formatvariant.name.mismatchconfig|dotencode: ][formatvariant.repo.mismatchconfig| yes][formatvariant.config.special| no][formatvariant.default| yes]
[formatvariant.name.uptodate|generaldelta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
share-safe: enable by default (BC)...
r49515 [formatvariant.name.uptodate|share-safe: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 [formatvariant.name.uptodate|sparserevlog: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
persistent-nodemap: enable the feature by default when using Rust...
r47646 [formatvariant.name.uptodate|persistent-nodemap:][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] (no-rust !)
[formatvariant.name.mismatchdefault|persistent-nodemap:][formatvariant.repo.mismatchdefault| yes][formatvariant.config.special| yes][formatvariant.default| no] (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 [formatvariant.name.uptodate|copies-sdc: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 [formatvariant.name.uptodate|revlog-v2: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
changelogv2: introduce a "changelogv2" feature...
r48037 [formatvariant.name.uptodate|changelog-v2: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 [formatvariant.name.uptodate|plain-cl-delta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
revlog-compression: use zstd by default (if available)...
r47636 [formatvariant.name.uptodate|compression: ][formatvariant.repo.uptodate| zlib][formatvariant.config.default| zlib][formatvariant.default| zlib] (no-zstd !)
[formatvariant.name.mismatchdefault|compression: ][formatvariant.repo.mismatchdefault| zlib][formatvariant.config.special| zlib][formatvariant.default| zstd] (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 [formatvariant.name.uptodate|compression-level: ][formatvariant.repo.uptodate| default][formatvariant.config.default| default][formatvariant.default| default]
Yuya Nishihara
debugformat: flush formatter output per item
r35378 $ hg debugformat -Tjson
[
{
Yuya Nishihara
debugformat: embed raw values in JSON and template output
r35379 "config": true,
"default": true,
Yuya Nishihara
debugformat: flush formatter output per item
r35378 "name": "fncache",
Yuya Nishihara
debugformat: embed raw values in JSON and template output
r35379 "repo": true
Yuya Nishihara
debugformat: flush formatter output per item
r35378 },
{
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 "config": false,
"default": false,
"name": "dirstate-v2",
"repo": false
},
{
tracked-key: make it possible to upgrade to and downgrade from the feature...
r49641 "config": false,
"default": false,
tracked-key: remove the dual write and rename to tracked-hint...
r49644 "name": "tracked-hint",
tracked-key: make it possible to upgrade to and downgrade from the feature...
r49641 "repo": false
},
{
Yuya Nishihara
debugformat: embed raw values in JSON and template output
r35379 "config": true,
"default": true,
Yuya Nishihara
debugformat: flush formatter output per item
r35378 "name": "dotencode",
Yuya Nishihara
debugformat: embed raw values in JSON and template output
r35379 "repo": true
Yuya Nishihara
debugformat: flush formatter output per item
r35378 },
{
Yuya Nishihara
debugformat: embed raw values in JSON and template output
r35379 "config": true,
"default": true,
Yuya Nishihara
debugformat: flush formatter output per item
r35378 "name": "generaldelta",
Yuya Nishihara
debugformat: embed raw values in JSON and template output
r35379 "repo": true
Yuya Nishihara
debugformat: flush formatter output per item
r35378 },
{
share-safe: enable by default (BC)...
r49515 "config": true,
"default": true,
Pulkit Goyal
share: move share safe functionality out of experimental...
r47052 "name": "share-safe",
share-safe: enable by default (BC)...
r49515 "repo": true
Pulkit Goyal
upgrade: add support for experimental safe share mode...
r46617 },
{
Boris Feld
sparse-revlog: enabled by default...
r40954 "config": true,
"default": true,
Paul Morelle
upgrade: add information about sparse-revlog...
r38741 "name": "sparserevlog",
Boris Feld
sparse-revlog: enabled by default...
r40954 "repo": true
Paul Morelle
upgrade: add information about sparse-revlog...
r38741 },
{
persistent-nodemap: enable the feature by default when using Rust...
r47646 "config": false, (no-rust !)
"config": true, (rust !)
upgrade: detect the side-data format variants...
r43299 "default": false,
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 "name": "persistent-nodemap",
persistent-nodemap: enable the feature by default when using Rust...
r47646 "repo": false (no-rust !)
"repo": true (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 },
{
"config": false,
"default": false,
sidedatacopies: teach upgrade about the new requirement...
r43408 "name": "copies-sdc",
"repo": false
},
{
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 "config": false,
"default": false,
"name": "revlog-v2",
"repo": false
},
{
changelogv2: introduce a "changelogv2" feature...
r48037 "config": false,
"default": false,
"name": "changelog-v2",
"repo": false
},
{
Yuya Nishihara
debugformat: embed raw values in JSON and template output
r35379 "config": true,
"default": true,
Yuya Nishihara
debugformat: flush formatter output per item
r35378 "name": "plain-cl-delta",
Yuya Nishihara
debugformat: embed raw values in JSON and template output
r35379 "repo": true
Yuya Nishihara
debugformat: flush formatter output per item
r35378 },
{
"config": "zlib",
revlog-compression: use zstd by default (if available)...
r47636 "default": "zlib", (no-zstd !)
"default": "zstd", (zstd !)
Yuya Nishihara
debugformat: flush formatter output per item
r35378 "name": "compression",
"repo": "zlib"
compression: display compression level in debugformat...
r42212 },
{
"config": "default",
"default": "default",
"name": "compression-level",
"repo": "default"
Yuya Nishihara
debugformat: flush formatter output per item
r35378 }
]
Gregory Szorc
repair: determine what upgrade will do...
r30776 $ hg debugupgraderepo
Pulkit Goyal
upgrade: rename finddeficiences() to find_format_upgrades()...
r46822 (no format upgrades found in existing repository)
Gregory Szorc
repair: determine what upgrade will do...
r30776 performing an upgrade with "--run" will make the following changes:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, sparserevlog, store (rust !)
Gregory Szorc
repair: determine what upgrade will do...
r30776
upgrade: only process revlogs that needs it by default...
r49277 no revlogs to process
upgrade: display the list of processed revlog before proceeding...
r46649
Gregory Szorc
repair: determine what upgrade will do...
r30776 additional optimizations are available by specifying "--optimize <name>":
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-parent
Gregory Szorc
repair: determine what upgrade will do...
r30776 deltas within internal storage will be recalculated to choose an optimal base revision where this was not already done; the size of the repository may shrink and various operations may become faster; the first time this optimization is performed could slow down upgrade execution considerably; subsequent invocations should not run noticeably slower
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-multibase
Gregory Szorc
repair: determine what upgrade will do...
r30776 deltas within internal storage will be recalculated against multiple base revision and the smallest difference will be used; the size of the repository may shrink significantly when there are many merges; this optimization will slow down execution in proportion to the number of merges in the repository and the amount of files in the repository; this slow down should not be significant unless there are tens of thousands of files and thousands of merges
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-all
Gregory Szorc
repair: determine what upgrade will do...
r30776 deltas within internal storage will always be recalculated without reusing prior deltas; this will likely make execution run several times slower; this optimization is typically not needed
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-fulladd
every revision will be re-added as if it was new content. It will go through the full storage mechanism giving extensions a chance to process it (eg. lfs). This is similar to "re-delta-all" but even slower since more logic is involved.
Boris Feld
upgrade: add a 'redeltafullall' mode...
r35346
Gregory Szorc
repair: determine what upgrade will do...
r30776
upgrade: support the --quiet flag...
r45302 $ hg debugupgraderepo --quiet
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, sparserevlog, store (rust !)
upgrade: support the --quiet flag...
r45302
upgrade: only process revlogs that needs it by default...
r49277 no revlogs to process
upgrade: display the list of processed revlog before proceeding...
r46649
upgrade: support the --quiet flag...
r45302
Gregory Szorc
repair: determine what upgrade will do...
r30776 --optimize can be used to add optimizations
Pulkit Goyal
upgrade: drop support for old style optimization names...
r46825 $ hg debugupgrade --optimize 're-delta-parent'
Pulkit Goyal
upgrade: rename finddeficiences() to find_format_upgrades()...
r46822 (no format upgrades found in existing repository)
Gregory Szorc
repair: determine what upgrade will do...
r30776 performing an upgrade with "--run" will make the following changes:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, sparserevlog, store (rust !)
Gregory Szorc
repair: determine what upgrade will do...
r30776
upgrade: clearly list optimisations...
r45301 optimisations: re-delta-parent
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-parent
Gregory Szorc
repair: determine what upgrade will do...
r30776 deltas within internal storage will choose a new base revision if needed
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
Gregory Szorc
repair: determine what upgrade will do...
r30776 additional optimizations are available by specifying "--optimize <name>":
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-multibase
Gregory Szorc
repair: determine what upgrade will do...
r30776 deltas within internal storage will be recalculated against multiple base revision and the smallest difference will be used; the size of the repository may shrink significantly when there are many merges; this optimization will slow down execution in proportion to the number of merges in the repository and the amount of files in the repository; this slow down should not be significant unless there are tens of thousands of files and thousands of merges
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-all
Gregory Szorc
repair: determine what upgrade will do...
r30776 deltas within internal storage will always be recalculated without reusing prior deltas; this will likely make execution run several times slower; this optimization is typically not needed
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-fulladd
every revision will be re-added as if it was new content. It will go through the full storage mechanism giving extensions a chance to process it (eg. lfs). This is similar to "re-delta-all" but even slower since more logic is involved.
modern form of the option
$ hg debugupgrade --optimize re-delta-parent
Pulkit Goyal
upgrade: rename finddeficiences() to find_format_upgrades()...
r46822 (no format upgrades found in existing repository)
Boris Feld
upgrade: add '-' in optimization name...
r41120 performing an upgrade with "--run" will make the following changes:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, sparserevlog, store (rust !)
Boris Feld
upgrade: add '-' in optimization name...
r41120
upgrade: clearly list optimisations...
r45301 optimisations: re-delta-parent
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-parent
deltas within internal storage will choose a new base revision if needed
Boris Feld
upgrade: add a 'redeltafullall' mode...
r35346
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
Boris Feld
upgrade: add '-' in optimization name...
r41120 additional optimizations are available by specifying "--optimize <name>":
re-delta-multibase
deltas within internal storage will be recalculated against multiple base revision and the smallest difference will be used; the size of the repository may shrink significantly when there are many merges; this optimization will slow down execution in proportion to the number of merges in the repository and the amount of files in the repository; this slow down should not be significant unless there are tens of thousands of files and thousands of merges
re-delta-all
deltas within internal storage will always be recalculated without reusing prior deltas; this will likely make execution run several times slower; this optimization is typically not needed
re-delta-fulladd
every revision will be re-added as if it was new content. It will go through the full storage mechanism giving extensions a chance to process it (eg. lfs). This is similar to "re-delta-all" but even slower since more logic is involved.
repo-upgrade: avoid a crash when multiple optimisation are specified...
r50272
upgrade: support the --quiet flag...
r45302 $ hg debugupgrade --optimize re-delta-parent --quiet
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, sparserevlog, store (rust !)
upgrade: support the --quiet flag...
r45302
optimisations: re-delta-parent
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
Boris Feld
upgrade: add '-' in optimization name...
r41120
repo-upgrade: avoid a crash when multiple optimisation are specified...
r50272 passing multiple optimization:
$ hg debugupgrade --optimize re-delta-parent --optimize re-delta-multibase --quiet
requirements
preserved: * (glob)
optimisations: re-delta-multibase, re-delta-parent
processed revlogs:
- all-filelogs
- changelog
- manifest
Boris Feld
upgrade: add '-' in optimization name...
r41120 unknown optimization:
$ hg debugupgrade --optimize foobar
abort: unknown optimization action requested: foobar
(run without arguments to see valid optimizations)
[255]
Gregory Szorc
repair: determine what upgrade will do...
r30776
Various sub-optimal detections work
$ cat > .hg/requires << EOF
> revlogv1
> store
> EOF
Boris Feld
debugformat: add a 'debugformat' command...
r35337 $ hg debugformat
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo
fncache: no
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: no
tracked-key: remove the dual write and rename to tracked-hint...
r49644 tracked-hint: no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 dotencode: no
generaldelta: no
Pulkit Goyal
share: move share safe functionality out of experimental...
r47052 share-safe: no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: no
persistent-nodemap: no
copies-sdc: no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes
compression: zlib
compression-level: default
Boris Feld
debugformat: add data about the config when verbose...
r35338 $ hg debugformat --verbose
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
fncache: no yes yes
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: no no no
tracked-key: remove the dual write and rename to tracked-hint...
r49644 tracked-hint: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 dotencode: no yes yes
generaldelta: no yes yes
share-safe: enable by default (BC)...
r49515 share-safe: no yes yes
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: no yes yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no no no (no-rust !)
persistent-nodemap: no yes no (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no no no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: no no no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes yes yes
revlog-compression: use zstd by default (if available)...
r47636 compression: zlib zlib zlib (no-zstd !)
compression: zlib zlib zstd (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 compression-level: default default default
Boris Feld
debugformat: add data about the config when verbose...
r35338 $ hg debugformat --verbose --config format.usegeneraldelta=no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
fncache: no yes yes
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: no no no
tracked-key: remove the dual write and rename to tracked-hint...
r49644 tracked-hint: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 dotencode: no yes yes
generaldelta: no no yes
share-safe: enable by default (BC)...
r49515 share-safe: no yes yes
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: no no yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no no no (no-rust !)
persistent-nodemap: no yes no (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no no no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: no no no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes yes yes
revlog-compression: use zstd by default (if available)...
r47636 compression: zlib zlib zlib (no-zstd !)
compression: zlib zlib zstd (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 compression-level: default default default
Boris Feld
debugformat: update label depending on value difference...
r35339 $ hg debugformat --verbose --config format.usegeneraldelta=no --color=debug
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
[formatvariant.name.mismatchconfig|fncache: ][formatvariant.repo.mismatchconfig| no][formatvariant.config.default| yes][formatvariant.default| yes]
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 [formatvariant.name.uptodate|dirstate-v2: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
tracked-key: remove the dual write and rename to tracked-hint...
r49644 [formatvariant.name.uptodate|tracked-hint: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 [formatvariant.name.mismatchconfig|dotencode: ][formatvariant.repo.mismatchconfig| no][formatvariant.config.default| yes][formatvariant.default| yes]
[formatvariant.name.mismatchdefault|generaldelta: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes]
share-safe: enable by default (BC)...
r49515 [formatvariant.name.mismatchconfig|share-safe: ][formatvariant.repo.mismatchconfig| no][formatvariant.config.default| yes][formatvariant.default| yes]
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 [formatvariant.name.mismatchdefault|sparserevlog: ][formatvariant.repo.mismatchdefault| no][formatvariant.config.special| no][formatvariant.default| yes]
persistent-nodemap: enable the feature by default when using Rust...
r47646 [formatvariant.name.uptodate|persistent-nodemap:][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no] (no-rust !)
[formatvariant.name.mismatchconfig|persistent-nodemap:][formatvariant.repo.mismatchconfig| no][formatvariant.config.special| yes][formatvariant.default| no] (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 [formatvariant.name.uptodate|copies-sdc: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 [formatvariant.name.uptodate|revlog-v2: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
changelogv2: introduce a "changelogv2" feature...
r48037 [formatvariant.name.uptodate|changelog-v2: ][formatvariant.repo.uptodate| no][formatvariant.config.default| no][formatvariant.default| no]
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 [formatvariant.name.uptodate|plain-cl-delta: ][formatvariant.repo.uptodate| yes][formatvariant.config.default| yes][formatvariant.default| yes]
revlog-compression: use zstd by default (if available)...
r47636 [formatvariant.name.uptodate|compression: ][formatvariant.repo.uptodate| zlib][formatvariant.config.default| zlib][formatvariant.default| zlib] (no-zstd !)
[formatvariant.name.mismatchdefault|compression: ][formatvariant.repo.mismatchdefault| zlib][formatvariant.config.special| zlib][formatvariant.default| zstd] (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 [formatvariant.name.uptodate|compression-level: ][formatvariant.repo.uptodate| default][formatvariant.config.default| default][formatvariant.default| default]
Gregory Szorc
repair: determine what upgrade will do...
r30776 $ hg debugupgraderepo
upgrade: issue a message when a revlog type has to be upgraded...
r49276 note: selecting all-filelogs for processing to change: dotencode
note: selecting all-manifestlogs for processing to change: dotencode
note: selecting changelog for processing to change: dotencode
Gregory Szorc
repair: determine what upgrade will do...
r30776 repository lacks features recommended by current config options:
fncache
long and reserved filenames may not work correctly; repository performance is sub-optimal
dotencode
storage of filenames beginning with a period or space may not work correctly
generaldelta
deltas within internal storage are unable to choose optimal revisions; repository is larger and slower than it could be; interaction with other repositories may require extra network and CPU resources, making "hg push" and "hg pull" slower
share-safe: enable by default (BC)...
r49515 share-safe
old shared repositories do not share source repository requirements and config. This leads to various problems when the source repository format is upgraded or some new extensions are enabled.
Boris Feld
sparse-revlog: enabled by default...
r40954 sparserevlog
in order to limit disk reading and memory usage on older version, the span of a delta chain from its root to its end is limited, whatever the relevant data in this span. This can severly limit Mercurial ability to build good chain of delta resulting is much more storage space being taken and limit reusability of on disk delta during exchange.
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
persist the node -> rev mapping on disk to speedup lookup (rust !)
(rust !)
Gregory Szorc
repair: determine what upgrade will do...
r30776
performing an upgrade with "--run" will make the following changes:
requirements
preserved: revlogv1, store
share-safe: enable by default (BC)...
r49515 added: dotencode, fncache, generaldelta, share-safe, sparserevlog (no-rust !)
added: dotencode, fncache, generaldelta, persistent-nodemap, share-safe, sparserevlog (rust !)
Gregory Szorc
repair: determine what upgrade will do...
r30776
fncache
repository will be more resilient to storing certain paths and performance of certain operations should be improved
dotencode
repository will be better able to store files beginning with a space or period
generaldelta
repository storage will be able to create optimal deltas; new repository data will be smaller and read times should decrease; interacting with other repositories using this storage model should require less network and CPU resources, making "hg push" and "hg pull" faster
share-safe: enable by default (BC)...
r49515 share-safe
Upgrades a repository to share-safe format so that future shares of this repository share its requirements and configs.
Boris Feld
sparse-revlog: enabled by default...
r40954 sparserevlog
Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
Speedup revision lookup by node id. (rust !)
(rust !)
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
Gregory Szorc
repair: determine what upgrade will do...
r30776 additional optimizations are available by specifying "--optimize <name>":
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-parent
Gregory Szorc
repair: determine what upgrade will do...
r30776 deltas within internal storage will be recalculated to choose an optimal base revision where this was not already done; the size of the repository may shrink and various operations may become faster; the first time this optimization is performed could slow down upgrade execution considerably; subsequent invocations should not run noticeably slower
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-multibase
Gregory Szorc
repair: determine what upgrade will do...
r30776 deltas within internal storage will be recalculated against multiple base revision and the smallest difference will be used; the size of the repository may shrink significantly when there are many merges; this optimization will slow down execution in proportion to the number of merges in the repository and the amount of files in the repository; this slow down should not be significant unless there are tens of thousands of files and thousands of merges
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-all
Gregory Szorc
repair: determine what upgrade will do...
r30776 deltas within internal storage will always be recalculated without reusing prior deltas; this will likely make execution run several times slower; this optimization is typically not needed
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-fulladd
every revision will be re-added as if it was new content. It will go through the full storage mechanism giving extensions a chance to process it (eg. lfs). This is similar to "re-delta-all" but even slower since more logic is involved.
Boris Feld
upgrade: add a 'redeltafullall' mode...
r35346
upgrade: support the --quiet flag...
r45302 $ hg debugupgraderepo --quiet
requirements
preserved: revlogv1, store
share-safe: enable by default (BC)...
r49515 added: dotencode, fncache, generaldelta, share-safe, sparserevlog (no-rust !)
added: dotencode, fncache, generaldelta, persistent-nodemap, share-safe, sparserevlog (rust !)
upgrade: support the --quiet flag...
r45302
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
Gregory Szorc
repair: determine what upgrade will do...
r30776
$ hg --config format.dotencode=false debugupgraderepo
upgrade: issue a message when a revlog type has to be upgraded...
r49276 note: selecting all-filelogs for processing to change: fncache
note: selecting all-manifestlogs for processing to change: fncache
note: selecting changelog for processing to change: fncache
Gregory Szorc
repair: determine what upgrade will do...
r30776 repository lacks features recommended by current config options:
fncache
long and reserved filenames may not work correctly; repository performance is sub-optimal
generaldelta
deltas within internal storage are unable to choose optimal revisions; repository is larger and slower than it could be; interaction with other repositories may require extra network and CPU resources, making "hg push" and "hg pull" slower
share-safe: enable by default (BC)...
r49515 share-safe
old shared repositories do not share source repository requirements and config. This leads to various problems when the source repository format is upgraded or some new extensions are enabled.
Boris Feld
sparse-revlog: enabled by default...
r40954 sparserevlog
in order to limit disk reading and memory usage on older version, the span of a delta chain from its root to its end is limited, whatever the relevant data in this span. This can severly limit Mercurial ability to build good chain of delta resulting is much more storage space being taken and limit reusability of on disk delta during exchange.
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
persist the node -> rev mapping on disk to speedup lookup (rust !)
(rust !)
Gregory Szorc
repair: determine what upgrade will do...
r30776 repository lacks features used by the default config options:
dotencode
storage of filenames beginning with a period or space may not work correctly
performing an upgrade with "--run" will make the following changes:
requirements
preserved: revlogv1, store
share-safe: enable by default (BC)...
r49515 added: fncache, generaldelta, share-safe, sparserevlog (no-rust !)
added: fncache, generaldelta, persistent-nodemap, share-safe, sparserevlog (rust !)
Gregory Szorc
repair: determine what upgrade will do...
r30776
fncache
repository will be more resilient to storing certain paths and performance of certain operations should be improved
generaldelta
repository storage will be able to create optimal deltas; new repository data will be smaller and read times should decrease; interacting with other repositories using this storage model should require less network and CPU resources, making "hg push" and "hg pull" faster
share-safe: enable by default (BC)...
r49515 share-safe
Upgrades a repository to share-safe format so that future shares of this repository share its requirements and configs.
Boris Feld
sparse-revlog: enabled by default...
r40954 sparserevlog
Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
Speedup revision lookup by node id. (rust !)
(rust !)
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
Gregory Szorc
repair: determine what upgrade will do...
r30776 additional optimizations are available by specifying "--optimize <name>":
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-parent
Gregory Szorc
repair: determine what upgrade will do...
r30776 deltas within internal storage will be recalculated to choose an optimal base revision where this was not already done; the size of the repository may shrink and various operations may become faster; the first time this optimization is performed could slow down upgrade execution considerably; subsequent invocations should not run noticeably slower
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-multibase
Gregory Szorc
repair: determine what upgrade will do...
r30776 deltas within internal storage will be recalculated against multiple base revision and the smallest difference will be used; the size of the repository may shrink significantly when there are many merges; this optimization will slow down execution in proportion to the number of merges in the repository and the amount of files in the repository; this slow down should not be significant unless there are tens of thousands of files and thousands of merges
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-all
Gregory Szorc
repair: determine what upgrade will do...
r30776 deltas within internal storage will always be recalculated without reusing prior deltas; this will likely make execution run several times slower; this optimization is typically not needed
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-fulladd
every revision will be re-added as if it was new content. It will go through the full storage mechanism giving extensions a chance to process it (eg. lfs). This is similar to "re-delta-all" but even slower since more logic is involved.
Boris Feld
upgrade: add a 'redeltafullall' mode...
r35346
Gregory Szorc
repair: determine what upgrade will do...
r30776
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777 $ cd ..
Upgrading a repository that is already modern essentially no-ops
$ hg init modern
$ hg -R modern debugupgraderepo --run
Pulkit Goyal
upgrade: don't perform anything if nothing to do...
r46848 nothing to do
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777
Upgrading a repository to generaldelta works
$ hg --config format.usegeneraldelta=false init upgradegd
$ cd upgradegd
$ touch f0
$ hg -q commit -A -m initial
upgrade: create the correct destination directory for copies revlogs...
r43269 $ mkdir FooBarDirectory.d
$ touch FooBarDirectory.d/f1
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777 $ hg -q commit -A -m 'add f1'
$ hg -q up -r 0
upgrade: fix handling of `.d` data file...
r43271 >>> import random
>>> random.seed(0) # have a reproducible content
Matt Harbison
tests: open file in binary mode in test-upgrade-repo.t...
r43465 >>> with open("f2", "wb") as f:
upgrade: fix handling of `.d` data file...
r43271 ... for i in range(100000):
Matt Harbison
tests: open file in binary mode in test-upgrade-repo.t...
r43465 ... f.write(b"%d\n" % random.randint(1000000000, 9999999999)) and None
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777 $ hg -q commit -A -m 'add f2'
upgrade: fix handling of `.d` data file...
r43271 make sure we have a .d file
$ ls -d .hg/store/data/*
.hg/store/data/_foo_bar_directory.d.hg
.hg/store/data/f0.i
.hg/store/data/f2.d
.hg/store/data/f2.i
Boris Feld
test: preemptively disable sparse-revlog for some of test-upgrade-repo...
r40953 $ hg debugupgraderepo --run --config format.sparse-revlog=false
upgrade: issue a message when a revlog type has to be upgraded...
r49276 note: selecting all-filelogs for processing to change: generaldelta
note: selecting all-manifestlogs for processing to change: generaldelta
note: selecting changelog for processing to change: generaldelta
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777 upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, revlogv1, share-safe, store (no-rust !)
preserved: dotencode, fncache, persistent-nodemap, revlogv1, share-safe, store (rust !)
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777 added: generaldelta
generaldelta
repository storage will be able to create optimal deltas; new repository data will be smaller and read times should decrease; interacting with other repositories using this storage model should require less network and CPU resources, making "hg push" and "hg pull" faster
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777 beginning upgrade...
repository locked and read-only
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 creating temporary repository to stage upgraded data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
Gregory Szorc
repair: migrate revlogs during upgrade...
r30779 (it is safe to interrupt this process any time before data migration completes)
migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog)
upgrade: fix handling of `.d` data file...
r43271 migrating 519 KB in store; 1.05 MB tracked data
migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data)
Gregory Szorc
repair: migrate revlogs during upgrade...
r30779 finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes
upgrade: fix handling of `.d` data file...
r43271 migrating 1 manifests containing 3 revisions (384 bytes in store; 238 bytes tracked data)
finished migrating 3 manifest revisions across 1 manifests; change in size: -17 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data)
Gregory Szorc
repair: migrate revlogs during upgrade...
r30779 finished migrating 3 changelog revisions; change in size: 0 bytes
upgrade: fix handling of `.d` data file...
r43271 finished migrating 9 total revisions; total change in store size: -17 bytes
Gregory Szorc
repair: copy non-revlog store files during upgrade...
r30780 copying phaseroots
share-safe: enable by default (BC)...
r49515 copying requires
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 data fully upgraded in a temporary repository
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777 marking source repository as being upgraded; clients will be unable to read from repository
starting in-place swap of repository data
replaced files will be backed up at $TESTTMP/upgradegd/.hg/upgradebackup.* (glob)
Gregory Szorc
repair: migrate revlogs during upgrade...
r30779 replacing store...
store replacement complete; repository was inconsistent for *s (glob)
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777 finalizing requirements file and making repository readable again
removing temporary repository $TESTTMP/upgradegd/.hg/upgrade.* (glob)
copy of old repository backed up at $TESTTMP/upgradegd/.hg/upgradebackup.* (glob)
the old repository will not be deleted; remove it to free up disk space once the upgraded repository is verified
Original requirements backed up
$ cat .hg/upgradebackup.*/requires
share-safe: enable by default (BC)...
r49515 share-safe
$ cat .hg/upgradebackup.*/store/requires
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777 dotencode
fncache
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777 revlogv1
store
share-safe: enable by default (BC)...
r49515 upgradeinprogress
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777
generaldelta added to original requirements files
test: use `hg debugrequires` instead of `cat` in some tests...
r49295 $ hg debugrequires
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777 dotencode
fncache
generaldelta
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777 revlogv1
share-safe: enable by default (BC)...
r49515 share-safe
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777 store
Gregory Szorc
repair: migrate revlogs during upgrade...
r30779 store directory has files we expect
$ ls .hg/store
00changelog.i
00manifest.i
data
revlog: avoid possible collision between directory and temporary index...
r51555 data-s
Gregory Szorc
repair: migrate revlogs during upgrade...
r30779 fncache
Gregory Szorc
repair: copy non-revlog store files during upgrade...
r30780 phaseroots
share-safe: enable by default (BC)...
r49515 requires
Gregory Szorc
repair: migrate revlogs during upgrade...
r30779 undo
undo.backupfiles
manifest should be generaldelta
$ hg debugrevlog -m | grep flags
flags : inline, generaldelta
verify should be happy
Raphaël Gomès
tests: use the `--quiet` flag for verify when applicable...
r50720 $ hg verify -q
Gregory Szorc
repair: migrate revlogs during upgrade...
r30779
old store should be backed up
Boris Feld
debugupgraderepo: add a --no-backup mode...
r41121 $ ls -d .hg/upgradebackup.*/
.hg/upgradebackup.*/ (glob)
Gregory Szorc
repair: migrate revlogs during upgrade...
r30779 $ ls .hg/upgradebackup.*/store
00changelog.i
00manifest.i
data
revlog: avoid possible collision between directory and temporary index...
r51555 data-s
Gregory Szorc
repair: migrate revlogs during upgrade...
r30779 fncache
phaseroots
share-safe: enable by default (BC)...
r49515 requires
Gregory Szorc
repair: migrate revlogs during upgrade...
r30779 undo
branching: merge with stable
r51579 undo.backup.fncache.bck
Gregory Szorc
repair: migrate revlogs during upgrade...
r30779 undo.backupfiles
Boris Feld
debugupgraderepo: add a --no-backup mode...
r41121 unless --no-backup is passed
$ rm -rf .hg/upgradebackup.*/
$ hg debugupgraderepo --run --no-backup
upgrade: issue a message when a revlog type has to be upgraded...
r49276 note: selecting all-filelogs for processing to change: sparserevlog
note: selecting all-manifestlogs for processing to change: sparserevlog
note: selecting changelog for processing to change: sparserevlog
Boris Feld
debugupgraderepo: add a --no-backup mode...
r41121 upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, store (rust !)
Boris Feld
debugupgraderepo: add a --no-backup mode...
r41121 added: sparserevlog
sparserevlog
Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
Boris Feld
debugupgraderepo: add a --no-backup mode...
r41121 beginning upgrade...
repository locked and read-only
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 creating temporary repository to stage upgraded data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
Boris Feld
debugupgraderepo: add a --no-backup mode...
r41121 (it is safe to interrupt this process any time before data migration completes)
migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog)
upgrade: fix handling of `.d` data file...
r43271 migrating 519 KB in store; 1.05 MB tracked data
migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data)
Boris Feld
debugupgraderepo: add a --no-backup mode...
r41121 finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data)
Boris Feld
debugupgraderepo: add a --no-backup mode...
r41121 finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data)
Boris Feld
debugupgraderepo: add a --no-backup mode...
r41121 finished migrating 3 changelog revisions; change in size: 0 bytes
finished migrating 9 total revisions; total change in store size: 0 bytes
copying phaseroots
share-safe: enable by default (BC)...
r49515 copying requires
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 data fully upgraded in a temporary repository
Boris Feld
debugupgraderepo: add a --no-backup mode...
r41121 marking source repository as being upgraded; clients will be unable to read from repository
starting in-place swap of repository data
replacing store...
Pulkit Goyal
tests: glob seconds in test-upgrade-repo.t...
r42157 store replacement complete; repository was inconsistent for * (glob)
Boris Feld
debugupgraderepo: add a --no-backup mode...
r41121 finalizing requirements file and making repository readable again
removing temporary repository $TESTTMP/upgradegd/.hg/upgrade.* (glob)
$ ls -1 .hg/ | grep upgradebackup
[1]
upgrade: add an argument to control manifest upgrade...
r43098
We can restrict optimization to some revlog:
$ hg debugupgrade --optimize re-delta-parent --run --manifest --no-backup --debug --traceback
upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, sparserevlog, store (rust !)
upgrade: add an argument to control manifest upgrade...
r43098
upgrade: clearly list optimisations...
r45301 optimisations: re-delta-parent
upgrade: add an argument to control manifest upgrade...
r43098 re-delta-parent
deltas within internal storage will choose a new base revision if needed
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- manifest
upgrade: add an argument to control manifest upgrade...
r43098 beginning upgrade...
repository locked and read-only
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 creating temporary repository to stage upgraded data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
upgrade: add an argument to control manifest upgrade...
r43098 (it is safe to interrupt this process any time before data migration completes)
migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog)
upgrade: fix handling of `.d` data file...
r43271 migrating 519 KB in store; 1.05 MB tracked data
migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data)
upgrade: create the correct destination directory for copies revlogs...
r43269 blindly copying data/FooBarDirectory.d/f1.i containing 1 revisions
upgrade: add an argument to control manifest upgrade...
r43098 blindly copying data/f0.i containing 1 revisions
blindly copying data/f2.i containing 1 revisions
finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data)
upgrade: add an argument to control manifest upgrade...
r43098 cloning 3 revisions from 00manifest.i
finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data)
upgrade: add an argument to control manifest upgrade...
r43098 blindly copying 00changelog.i containing 3 revisions
finished migrating 3 changelog revisions; change in size: 0 bytes
finished migrating 9 total revisions; total change in store size: 0 bytes
copying phaseroots
share-safe: enable by default (BC)...
r49515 copying requires
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 data fully upgraded in a temporary repository
upgrade: add an argument to control manifest upgrade...
r43098 marking source repository as being upgraded; clients will be unable to read from repository
starting in-place swap of repository data
replacing store...
store replacement complete; repository was inconsistent for *s (glob)
finalizing requirements file and making repository readable again
removing temporary repository $TESTTMP/upgradegd/.hg/upgrade.* (glob)
Check that the repo still works fine
upgrade: fix handling of `.d` data file...
r43271 $ hg log -G --stat
Matt Harbison
tests: drop `(py3 !)` output matching predicates...
r50772 @ changeset: 2:fca376863211
upgrade: add an argument to control manifest upgrade...
r43098 | tag: tip
| parent: 0:ba592bf28da2
| user: test
| date: Thu Jan 01 00:00:00 1970 +0000
| summary: add f2
|
upgrade: fix handling of `.d` data file...
r43271 | f2 | 100000 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| 1 files changed, 100000 insertions(+), 0 deletions(-)
upgrade: add an argument to control manifest upgrade...
r43098 |
upgrade: create the correct destination directory for copies revlogs...
r43269 | o changeset: 1:2029ce2354e2
upgrade: add an argument to control manifest upgrade...
r43098 |/ user: test
| date: Thu Jan 01 00:00:00 1970 +0000
| summary: add f1
|
|
o changeset: 0:ba592bf28da2
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: initial
Raphaël Gomès
tests: use the `--quiet` flag for verify when applicable...
r50720 $ hg verify -q
upgrade: add an argument to control manifest upgrade...
r43098
Check we can select negatively
$ hg debugupgrade --optimize re-delta-parent --run --no-manifest --no-backup --debug --traceback
upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, sparserevlog, store (rust !)
upgrade: add an argument to control manifest upgrade...
r43098
upgrade: clearly list optimisations...
r45301 optimisations: re-delta-parent
upgrade: add an argument to control manifest upgrade...
r43098 re-delta-parent
deltas within internal storage will choose a new base revision if needed
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
upgrade: add an argument to control manifest upgrade...
r43098 beginning upgrade...
repository locked and read-only
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 creating temporary repository to stage upgraded data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
upgrade: add an argument to control manifest upgrade...
r43098 (it is safe to interrupt this process any time before data migration completes)
migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog)
upgrade: fix handling of `.d` data file...
r43271 migrating 519 KB in store; 1.05 MB tracked data
migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data)
upgrade: create the correct destination directory for copies revlogs...
r43269 cloning 1 revisions from data/FooBarDirectory.d/f1.i
upgrade: add an argument to control manifest upgrade...
r43098 cloning 1 revisions from data/f0.i
cloning 1 revisions from data/f2.i
finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data)
upgrade: add an argument to control manifest upgrade...
r43098 blindly copying 00manifest.i containing 3 revisions
finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data)
upgrade: add an argument to control manifest upgrade...
r43098 cloning 3 revisions from 00changelog.i
finished migrating 3 changelog revisions; change in size: 0 bytes
finished migrating 9 total revisions; total change in store size: 0 bytes
copying phaseroots
share-safe: enable by default (BC)...
r49515 copying requires
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 data fully upgraded in a temporary repository
upgrade: add an argument to control manifest upgrade...
r43098 marking source repository as being upgraded; clients will be unable to read from repository
starting in-place swap of repository data
replacing store...
store replacement complete; repository was inconsistent for *s (glob)
finalizing requirements file and making repository readable again
removing temporary repository $TESTTMP/upgradegd/.hg/upgrade.* (glob)
Raphaël Gomès
tests: use the `--quiet` flag for verify when applicable...
r50720 $ hg verify -q
upgrade: add an argument to control manifest upgrade...
r43098
upgrade: add an argument to control changelog upgrade...
r43099 Check that we can select changelog only
$ hg debugupgrade --optimize re-delta-parent --run --changelog --no-backup --debug --traceback
upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, sparserevlog, store (rust !)
upgrade: add an argument to control changelog upgrade...
r43099
upgrade: clearly list optimisations...
r45301 optimisations: re-delta-parent
upgrade: add an argument to control changelog upgrade...
r43099 re-delta-parent
deltas within internal storage will choose a new base revision if needed
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- changelog
upgrade: add an argument to control changelog upgrade...
r43099 beginning upgrade...
repository locked and read-only
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 creating temporary repository to stage upgraded data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
upgrade: add an argument to control changelog upgrade...
r43099 (it is safe to interrupt this process any time before data migration completes)
migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog)
upgrade: fix handling of `.d` data file...
r43271 migrating 519 KB in store; 1.05 MB tracked data
migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data)
upgrade: create the correct destination directory for copies revlogs...
r43269 blindly copying data/FooBarDirectory.d/f1.i containing 1 revisions
upgrade: add an argument to control changelog upgrade...
r43099 blindly copying data/f0.i containing 1 revisions
blindly copying data/f2.i containing 1 revisions
finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data)
upgrade: add an argument to control changelog upgrade...
r43099 blindly copying 00manifest.i containing 3 revisions
finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data)
upgrade: add an argument to control changelog upgrade...
r43099 cloning 3 revisions from 00changelog.i
finished migrating 3 changelog revisions; change in size: 0 bytes
finished migrating 9 total revisions; total change in store size: 0 bytes
copying phaseroots
share-safe: enable by default (BC)...
r49515 copying requires
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 data fully upgraded in a temporary repository
upgrade: add an argument to control changelog upgrade...
r43099 marking source repository as being upgraded; clients will be unable to read from repository
starting in-place swap of repository data
replacing store...
store replacement complete; repository was inconsistent for *s (glob)
finalizing requirements file and making repository readable again
removing temporary repository $TESTTMP/upgradegd/.hg/upgrade.* (glob)
Raphaël Gomès
tests: use the `--quiet` flag for verify when applicable...
r50720 $ hg verify -q
upgrade: add an argument to control changelog upgrade...
r43099
Check that we can select filelog only
$ hg debugupgrade --optimize re-delta-parent --run --no-changelog --no-manifest --no-backup --debug --traceback
upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, sparserevlog, store (rust !)
upgrade: add an argument to control changelog upgrade...
r43099
upgrade: clearly list optimisations...
r45301 optimisations: re-delta-parent
upgrade: add an argument to control changelog upgrade...
r43099 re-delta-parent
deltas within internal storage will choose a new base revision if needed
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
upgrade: add an argument to control changelog upgrade...
r43099 beginning upgrade...
repository locked and read-only
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 creating temporary repository to stage upgraded data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
upgrade: add an argument to control changelog upgrade...
r43099 (it is safe to interrupt this process any time before data migration completes)
migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog)
upgrade: fix handling of `.d` data file...
r43271 migrating 519 KB in store; 1.05 MB tracked data
migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data)
upgrade: create the correct destination directory for copies revlogs...
r43269 cloning 1 revisions from data/FooBarDirectory.d/f1.i
upgrade: add an argument to control changelog upgrade...
r43099 cloning 1 revisions from data/f0.i
cloning 1 revisions from data/f2.i
finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data)
upgrade: add an argument to control changelog upgrade...
r43099 blindly copying 00manifest.i containing 3 revisions
finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data)
upgrade: add an argument to control changelog upgrade...
r43099 blindly copying 00changelog.i containing 3 revisions
finished migrating 3 changelog revisions; change in size: 0 bytes
finished migrating 9 total revisions; total change in store size: 0 bytes
copying phaseroots
share-safe: enable by default (BC)...
r49515 copying requires
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 data fully upgraded in a temporary repository
upgrade: add an argument to control changelog upgrade...
r43099 marking source repository as being upgraded; clients will be unable to read from repository
starting in-place swap of repository data
replacing store...
store replacement complete; repository was inconsistent for *s (glob)
finalizing requirements file and making repository readable again
removing temporary repository $TESTTMP/upgradegd/.hg/upgrade.* (glob)
Raphaël Gomès
tests: use the `--quiet` flag for verify when applicable...
r50720 $ hg verify -q
upgrade: add an argument to control changelog upgrade...
r43099
upgrade: make sure we reclone all revlogs when updating to some format...
r43100
Check you can't skip revlog clone during important format downgrade
$ echo "[format]" > .hg/hgrc
$ echo "sparse-revlog=no" >> .hg/hgrc
upgrade: explicitly warn when a `--no-xxx` flag is overwritten...
r49275 $ hg debugupgrade --optimize re-delta-parent --no-manifest --no-backup --quiet
warning: ignoring --no-manifest, as upgrade is changing: sparserevlog
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, store (rust !)
upgrade: explicitly warn when a `--no-xxx` flag is overwritten...
r49275 removed: sparserevlog
optimisations: re-delta-parent
processed revlogs:
- all-filelogs
- changelog
- manifest
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 $ hg debugupgrade --optimize re-delta-parent --run --manifest --no-backup --debug --traceback
upgrade: issue a message when a revlog type has to be upgraded...
r49276 note: selecting all-filelogs for processing to change: sparserevlog
note: selecting changelog for processing to change: sparserevlog
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, store (rust !)
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 removed: sparserevlog
upgrade: clearly list optimisations...
r45301 optimisations: re-delta-parent
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 re-delta-parent
deltas within internal storage will choose a new base revision if needed
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 beginning upgrade...
repository locked and read-only
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 creating temporary repository to stage upgraded data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 (it is safe to interrupt this process any time before data migration completes)
migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog)
upgrade: fix handling of `.d` data file...
r43271 migrating 519 KB in store; 1.05 MB tracked data
migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data)
upgrade: create the correct destination directory for copies revlogs...
r43269 cloning 1 revisions from data/FooBarDirectory.d/f1.i
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 cloning 1 revisions from data/f0.i
cloning 1 revisions from data/f2.i
finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data)
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 cloning 3 revisions from 00manifest.i
finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data)
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 cloning 3 revisions from 00changelog.i
finished migrating 3 changelog revisions; change in size: 0 bytes
finished migrating 9 total revisions; total change in store size: 0 bytes
copying phaseroots
share-safe: enable by default (BC)...
r49515 copying requires
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 data fully upgraded in a temporary repository
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 marking source repository as being upgraded; clients will be unable to read from repository
starting in-place swap of repository data
replacing store...
store replacement complete; repository was inconsistent for *s (glob)
finalizing requirements file and making repository readable again
removing temporary repository $TESTTMP/upgradegd/.hg/upgrade.* (glob)
Raphaël Gomès
tests: use the `--quiet` flag for verify when applicable...
r50720 $ hg verify -q
upgrade: make sure we reclone all revlogs when updating to some format...
r43100
Check you can't skip revlog clone during important format upgrade
$ echo "sparse-revlog=yes" >> .hg/hgrc
$ hg debugupgrade --optimize re-delta-parent --run --manifest --no-backup --debug --traceback
upgrade: issue a message when a revlog type has to be upgraded...
r49276 note: selecting all-filelogs for processing to change: sparserevlog
note: selecting changelog for processing to change: sparserevlog
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, store (rust !)
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 added: sparserevlog
upgrade: clearly list optimisations...
r45301 optimisations: re-delta-parent
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 sparserevlog
Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server.
re-delta-parent
deltas within internal storage will choose a new base revision if needed
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 beginning upgrade...
repository locked and read-only
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 creating temporary repository to stage upgraded data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 (it is safe to interrupt this process any time before data migration completes)
migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog)
upgrade: fix handling of `.d` data file...
r43271 migrating 519 KB in store; 1.05 MB tracked data
migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data)
upgrade: create the correct destination directory for copies revlogs...
r43269 cloning 1 revisions from data/FooBarDirectory.d/f1.i
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 cloning 1 revisions from data/f0.i
cloning 1 revisions from data/f2.i
finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data)
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 cloning 3 revisions from 00manifest.i
finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes
upgrade: create the correct destination directory for copies revlogs...
r43269 migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data)
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 cloning 3 revisions from 00changelog.i
finished migrating 3 changelog revisions; change in size: 0 bytes
finished migrating 9 total revisions; total change in store size: 0 bytes
copying phaseroots
share-safe: enable by default (BC)...
r49515 copying requires
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 data fully upgraded in a temporary repository
upgrade: make sure we reclone all revlogs when updating to some format...
r43100 marking source repository as being upgraded; clients will be unable to read from repository
starting in-place swap of repository data
replacing store...
store replacement complete; repository was inconsistent for *s (glob)
finalizing requirements file and making repository readable again
removing temporary repository $TESTTMP/upgradegd/.hg/upgrade.* (glob)
Raphaël Gomès
tests: use the `--quiet` flag for verify when applicable...
r50720 $ hg verify -q
upgrade: make sure we reclone all revlogs when updating to some format...
r43100
Gregory Szorc
repair: begin implementation of in-place upgrading...
r30777 $ cd ..
Gregory Szorc
tests: add test demonstrating buggy path handling...
r31798
store files with special filenames aren't encoded during copy
$ hg init store-filenames
$ cd store-filenames
$ touch foo
$ hg -q commit -A -m initial
$ touch .hg/store/.XX_special_filename
$ hg debugupgraderepo --run
Pulkit Goyal
upgrade: don't perform anything if nothing to do...
r46848 nothing to do
Pulkit Goyal
upgrade: drop support for old style optimization names...
r46825 $ hg debugupgraderepo --run --optimize 're-delta-fulladd'
Boris Feld
upgrade: add a 'redeltafullall' mode...
r35346 upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, sparserevlog, store (rust !)
Boris Feld
upgrade: add a 'redeltafullall' mode...
r35346
upgrade: clearly list optimisations...
r45301 optimisations: re-delta-fulladd
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-fulladd
Boris Feld
upgrade: add a 'redeltafullall' mode...
r35346 each revision will be added as new content to the internal storage; this will likely drastically slow down execution time, but some extensions might need it
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
Boris Feld
upgrade: add a 'redeltafullall' mode...
r35346 beginning upgrade...
repository locked and read-only
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 creating temporary repository to stage upgraded data: $TESTTMP/store-filenames/.hg/upgrade.* (glob)
Boris Feld
upgrade: add a 'redeltafullall' mode...
r35346 (it is safe to interrupt this process any time before data migration completes)
migrating 3 total revisions (1 in filelogs, 1 in manifests, 1 in changelog)
Gregory Szorc
upgrade: report size of backing files, not internal storage size...
r39893 migrating 301 bytes in store; 107 bytes tracked data
migrating 1 filelogs containing 1 revisions (64 bytes in store; 0 bytes tracked data)
Boris Feld
upgrade: add a 'redeltafullall' mode...
r35346 finished migrating 1 filelog revisions across 1 filelogs; change in size: 0 bytes
Gregory Szorc
upgrade: report size of backing files, not internal storage size...
r39893 migrating 1 manifests containing 1 revisions (110 bytes in store; 45 bytes tracked data)
Boris Feld
upgrade: add a 'redeltafullall' mode...
r35346 finished migrating 1 manifest revisions across 1 manifests; change in size: 0 bytes
Gregory Szorc
upgrade: report size of backing files, not internal storage size...
r39893 migrating changelog containing 1 revisions (127 bytes in store; 62 bytes tracked data)
Boris Feld
upgrade: add a 'redeltafullall' mode...
r35346 finished migrating 1 changelog revisions; change in size: 0 bytes
finished migrating 3 total revisions; total change in store size: 0 bytes
copying .XX_special_filename
copying phaseroots
share-safe: enable by default (BC)...
r49515 copying requires
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 data fully upgraded in a temporary repository
Boris Feld
upgrade: add a 'redeltafullall' mode...
r35346 marking source repository as being upgraded; clients will be unable to read from repository
starting in-place swap of repository data
replaced files will be backed up at $TESTTMP/store-filenames/.hg/upgradebackup.* (glob)
replacing store...
Matt Harbison
test-upgrade-repo: glob away timing values
r35361 store replacement complete; repository was inconsistent for *s (glob)
Boris Feld
upgrade: add a 'redeltafullall' mode...
r35346 finalizing requirements file and making repository readable again
removing temporary repository $TESTTMP/store-filenames/.hg/upgrade.* (glob)
copy of old repository backed up at $TESTTMP/store-filenames/.hg/upgradebackup.* (glob)
the old repository will not be deleted; remove it to free up disk space once the upgraded repository is verified
Gregory Szorc
tests: add test demonstrating buggy path handling...
r31798
Boris Feld
upgrade: test that fncache is valid after repository upgrade...
r40871 fncache is valid after upgrade
$ hg debugrebuildfncache
fncache already up to date
Gregory Szorc
tests: add test demonstrating buggy path handling...
r31798 $ cd ..
Boris Feld
largefiles: allow to run 'debugupgraderepo' on repo with largefiles...
r35304
Check upgrading a large file repository
---------------------------------------
$ hg init largefilesrepo
$ cat << EOF >> largefilesrepo/.hg/hgrc
> [extensions]
> largefiles =
> EOF
$ cd largefilesrepo
$ touch foo
$ hg add --large foo
$ hg -q commit -m initial
tests: use debugrequires in test-upgrade-repo.t...
r49502 $ hg debugrequires
Boris Feld
largefiles: allow to run 'debugupgraderepo' on repo with largefiles...
r35304 dotencode
fncache
generaldelta
largefiles
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
Boris Feld
largefiles: allow to run 'debugupgraderepo' on repo with largefiles...
r35304 revlogv1
share-safe: enable by default (BC)...
r49515 share-safe
Boris Feld
sparse-revlog: enabled by default...
r40954 sparserevlog
Boris Feld
largefiles: allow to run 'debugupgraderepo' on repo with largefiles...
r35304 store
$ hg debugupgraderepo --run
Pulkit Goyal
upgrade: don't perform anything if nothing to do...
r46848 nothing to do
tests: use debugrequires in test-upgrade-repo.t...
r49502 $ hg debugrequires
Boris Feld
largefiles: allow to run 'debugupgraderepo' on repo with largefiles...
r35304 dotencode
fncache
generaldelta
largefiles
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
Boris Feld
largefiles: allow to run 'debugupgraderepo' on repo with largefiles...
r35304 revlogv1
share-safe: enable by default (BC)...
r49515 share-safe
Boris Feld
sparse-revlog: enabled by default...
r40954 sparserevlog
Boris Feld
largefiles: allow to run 'debugupgraderepo' on repo with largefiles...
r35304 store
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342
Matt Harbison
tests: add coverage for preserving 'lfs' requirement on repo upgrade...
r35362 $ cat << EOF >> .hg/hgrc
> [extensions]
> lfs =
> [lfs]
> threshold = 10
> EOF
$ echo '123456789012345' > lfs.bin
$ hg ci -Am 'lfs.bin'
adding lfs.bin
tests: use debugrequires instead of grepping the file directly...
r49503 $ hg debugrequires | grep lfs
Matt Harbison
tests: add coverage for preserving 'lfs' requirement on repo upgrade...
r35362 lfs
$ find .hg/store/lfs -type f
.hg/store/lfs/objects/d0/beab232adff5ba365880366ad30b1edb85c4c5372442b5d2fe27adc96d653f
$ hg debugupgraderepo --run
Pulkit Goyal
upgrade: don't perform anything if nothing to do...
r46848 nothing to do
Matt Harbison
tests: add coverage for preserving 'lfs' requirement on repo upgrade...
r35362
tests: use debugrequires instead of grepping the file directly...
r49503 $ hg debugrequires | grep lfs
Matt Harbison
tests: add coverage for preserving 'lfs' requirement on repo upgrade...
r35362 lfs
$ find .hg/store/lfs -type f
Matt Harbison
lfs: restore the local blob store after a repo upgrade...
r35364 .hg/store/lfs/objects/d0/beab232adff5ba365880366ad30b1edb85c4c5372442b5d2fe27adc96d653f
Raphaël Gomès
tests: use the `--quiet` flag for verify when applicable...
r50720 $ hg verify -q
Matt Harbison
tests: add coverage for preserving 'lfs' requirement on repo upgrade...
r35362 $ hg debugdata lfs.bin 0
version https://git-lfs.github.com/spec/v1
oid sha256:d0beab232adff5ba365880366ad30b1edb85c4c5372442b5d2fe27adc96d653f
size 16
x-is-binary 0
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342 $ cd ..
repository config is taken in account
-------------------------------------
$ cat << EOF >> $HGRCPATH
> [format]
> maxchainlen = 1
> EOF
$ hg init localconfig
$ cd localconfig
$ cat << EOF > file
> some content
> with some length
> to make sure we get a delta
> after changes
> very long
> very long
> very long
> very long
> very long
> very long
> very long
> very long
> very long
> very long
> very long
> EOF
$ hg -q commit -A -m A
$ echo "new line" >> file
$ hg -q commit -m B
$ echo "new line" >> file
$ hg -q commit -m C
$ cat << EOF >> .hg/hgrc
> [format]
> maxchainlen = 9001
> EOF
$ hg config format
test: explicitly use zlib compression in tests/test-upgrade-repo.t...
r47608 format.revlog-compression=$BUNDLE2_COMPRESSIONS$
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342 format.maxchainlen=9001
Gregory Szorc
tests: use debugdeltachain where appropriate...
r37299 $ hg debugdeltachain file
debugdeltachain: also display p1/p2...
r50116 rev p1 p2 chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio readsize largestblk rddensity srchunks
0 -1 -1 1 1 -1 base 77 182 77 0.42308 77 0 0.00000 77 77 1.00000 1
1 0 -1 1 2 0 p1 21 191 98 0.51309 98 0 0.00000 98 98 1.00000 1
2 1 -1 1 2 0 snap 30 200 107 0.53500 128 21 0.19626 128 128 0.83594 1
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342
Pulkit Goyal
upgrade: drop support for old style optimization names...
r46825 $ hg debugupgraderepo --run --optimize 're-delta-all'
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342 upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, sparserevlog, store (rust !)
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342
upgrade: clearly list optimisations...
r45301 optimisations: re-delta-all
Boris Feld
upgrade: add '-' in optimization name...
r41120 re-delta-all
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342 deltas within internal storage will be fully recomputed; this will likely drastically slow down execution time
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342 beginning upgrade...
repository locked and read-only
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 creating temporary repository to stage upgraded data: $TESTTMP/localconfig/.hg/upgrade.* (glob)
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342 (it is safe to interrupt this process any time before data migration completes)
migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog)
Boris Feld
sparse-revlog: enabled by default...
r40954 migrating 1019 bytes in store; 882 bytes tracked data
migrating 1 filelogs containing 3 revisions (320 bytes in store; 573 bytes tracked data)
finished migrating 3 filelog revisions across 1 filelogs; change in size: -9 bytes
Gregory Szorc
upgrade: report size of backing files, not internal storage size...
r39893 migrating 1 manifests containing 3 revisions (333 bytes in store; 138 bytes tracked data)
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342 finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes
Gregory Szorc
upgrade: report size of backing files, not internal storage size...
r39893 migrating changelog containing 3 revisions (366 bytes in store; 171 bytes tracked data)
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342 finished migrating 3 changelog revisions; change in size: 0 bytes
Boris Feld
sparse-revlog: enabled by default...
r40954 finished migrating 9 total revisions; total change in store size: -9 bytes
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342 copying phaseroots
share-safe: enable by default (BC)...
r49515 copying requires
Pulkit Goyal
upgrade: migrated -> upgraded in ui messages...
r46839 data fully upgraded in a temporary repository
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342 marking source repository as being upgraded; clients will be unable to read from repository
starting in-place swap of repository data
replaced files will be backed up at $TESTTMP/localconfig/.hg/upgradebackup.* (glob)
replacing store...
Matt Harbison
test-upgrade-repo: glob away timing values
r35361 store replacement complete; repository was inconsistent for *s (glob)
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342 finalizing requirements file and making repository readable again
removing temporary repository $TESTTMP/localconfig/.hg/upgrade.* (glob)
copy of old repository backed up at $TESTTMP/localconfig/.hg/upgradebackup.* (glob)
the old repository will not be deleted; remove it to free up disk space once the upgraded repository is verified
Gregory Szorc
tests: use debugdeltachain where appropriate...
r37299 $ hg debugdeltachain file
debugdeltachain: also display p1/p2...
r50116 rev p1 p2 chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio readsize largestblk rddensity srchunks
0 -1 -1 1 1 -1 base 77 182 77 0.42308 77 0 0.00000 77 77 1.00000 1
1 0 -1 1 2 0 p1 21 191 98 0.51309 98 0 0.00000 98 98 1.00000 1
2 1 -1 1 3 1 p1 21 200 119 0.59500 119 0 0.00000 119 119 1.00000 1
Boris Feld
upgrade: add a test to show the repository config being ignored...
r35342 $ cd ..
$ cat << EOF >> $HGRCPATH
> [format]
> maxchainlen = 9001
> EOF
Paul Morelle
upgrade: enable adding or removing sparse-revlog requirement
r38742
Check upgrading a sparse-revlog repository
---------------------------------------
Boris Feld
test: preemptively disable sparse-revlog for some of test-upgrade-repo...
r40953 $ hg init sparserevlogrepo --config format.sparse-revlog=no
Paul Morelle
upgrade: enable adding or removing sparse-revlog requirement
r38742 $ cd sparserevlogrepo
$ touch foo
$ hg add foo
$ hg -q commit -m "foo"
tests: use debugrequires in test-upgrade-repo.t...
r49502 $ hg debugrequires
Paul Morelle
upgrade: enable adding or removing sparse-revlog requirement
r38742 dotencode
fncache
generaldelta
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
Paul Morelle
upgrade: enable adding or removing sparse-revlog requirement
r38742 revlogv1
share-safe: enable by default (BC)...
r49515 share-safe
Paul Morelle
upgrade: enable adding or removing sparse-revlog requirement
r38742 store
Check that we can add the sparse-revlog format requirement
upgrade: support the --quiet flag...
r45302 $ hg --config format.sparse-revlog=yes debugupgraderepo --run --quiet
upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, store (rust !)
upgrade: support the --quiet flag...
r45302 added: sparserevlog
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
tests: use debugrequires in test-upgrade-repo.t...
r49502 $ hg debugrequires
Paul Morelle
upgrade: enable adding or removing sparse-revlog requirement
r38742 dotencode
fncache
generaldelta
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
Paul Morelle
upgrade: enable adding or removing sparse-revlog requirement
r38742 revlogv1
share-safe: enable by default (BC)...
r49515 share-safe
Paul Morelle
upgrade: enable adding or removing sparse-revlog requirement
r38742 sparserevlog
store
Check that we can remove the sparse-revlog format requirement
upgrade: support the --quiet flag...
r45302 $ hg --config format.sparse-revlog=no debugupgraderepo --run --quiet
upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, store (rust !)
upgrade: support the --quiet flag...
r45302 removed: sparserevlog
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
tests: use debugrequires in test-upgrade-repo.t...
r49502 $ hg debugrequires
Paul Morelle
upgrade: enable adding or removing sparse-revlog requirement
r38742 dotencode
fncache
generaldelta
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
Paul Morelle
upgrade: enable adding or removing sparse-revlog requirement
r38742 revlogv1
share-safe: enable by default (BC)...
r49515 share-safe
Paul Morelle
upgrade: enable adding or removing sparse-revlog requirement
r38742 store
upgrade: support upgrade to/from zstd storage (issue6088)...
r42306
#if zstd
Check upgrading to a zstd revlog
--------------------------------
upgrade
upgrade: support the --quiet flag...
r45302 $ hg --config format.revlog-compression=zstd debugupgraderepo --run --no-backup --quiet
upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, store (rust !)
upgrade: support the --quiet flag...
r45302 added: revlog-compression-zstd, sparserevlog
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
upgrade: support upgrade to/from zstd storage (issue6088)...
r42306 $ hg debugformat -v
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
fncache: yes yes yes
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: no no no
tracked-key: remove the dual write and rename to tracked-hint...
r49644 tracked-hint: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 dotencode: yes yes yes
generaldelta: yes yes yes
share-safe: enable by default (BC)...
r49515 share-safe: yes yes yes
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: yes yes yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no no no (no-rust !)
persistent-nodemap: yes yes no (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no no no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: no no no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes yes yes
revlog-compression: use zstd by default (if available)...
r47636 compression: zlib zlib zlib (no-zstd !)
compression: zstd zlib zstd (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 compression-level: default default default
tests: use debugrequires in test-upgrade-repo.t...
r49502 $ hg debugrequires
upgrade: support upgrade to/from zstd storage (issue6088)...
r42306 dotencode
fncache
generaldelta
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
upgrade: support upgrade to/from zstd storage (issue6088)...
r42306 revlog-compression-zstd
revlogv1
share-safe: enable by default (BC)...
r49515 share-safe
upgrade: support upgrade to/from zstd storage (issue6088)...
r42306 sparserevlog
store
downgrade
upgrade: support the --quiet flag...
r45302 $ hg debugupgraderepo --run --no-backup --quiet
upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, sparserevlog, store (rust !)
upgrade: support the --quiet flag...
r45302 removed: revlog-compression-zstd
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
upgrade: support upgrade to/from zstd storage (issue6088)...
r42306 $ hg debugformat -v
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
fncache: yes yes yes
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: no no no
tracked-key: remove the dual write and rename to tracked-hint...
r49644 tracked-hint: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 dotencode: yes yes yes
generaldelta: yes yes yes
share-safe: enable by default (BC)...
r49515 share-safe: yes yes yes
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: yes yes yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no no no (no-rust !)
persistent-nodemap: yes yes no (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no no no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: no no no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes yes yes
revlog-compression: use zstd by default (if available)...
r47636 compression: zlib zlib zlib (no-zstd !)
compression: zlib zlib zstd (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 compression-level: default default default
tests: use debugrequires in test-upgrade-repo.t...
r49502 $ hg debugrequires
upgrade: support upgrade to/from zstd storage (issue6088)...
r42306 dotencode
fncache
generaldelta
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
upgrade: support upgrade to/from zstd storage (issue6088)...
r42306 revlogv1
share-safe: enable by default (BC)...
r49515 share-safe
upgrade: support upgrade to/from zstd storage (issue6088)...
r42306 sparserevlog
store
upgrade from hgrc
$ cat >> .hg/hgrc << EOF
> [format]
> revlog-compression=zstd
> EOF
upgrade: support the --quiet flag...
r45302 $ hg debugupgraderepo --run --no-backup --quiet
upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, share-safe, sparserevlog, store (rust !)
upgrade: support the --quiet flag...
r45302 added: revlog-compression-zstd
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
upgrade: support upgrade to/from zstd storage (issue6088)...
r42306 $ hg debugformat -v
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
fncache: yes yes yes
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: no no no
tracked-key: remove the dual write and rename to tracked-hint...
r49644 tracked-hint: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 dotencode: yes yes yes
generaldelta: yes yes yes
share-safe: enable by default (BC)...
r49515 share-safe: yes yes yes
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: yes yes yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no no no (no-rust !)
persistent-nodemap: yes yes no (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no no no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: no no no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes yes yes
revlog-compression: use zstd by default (if available)...
r47636 compression: zlib zlib zlib (no-zstd !)
compression: zstd zstd zstd (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 compression-level: default default default
tests: use debugrequires in test-upgrade-repo.t...
r49502 $ hg debugrequires
upgrade: support upgrade to/from zstd storage (issue6088)...
r42306 dotencode
fncache
generaldelta
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
upgrade: support upgrade to/from zstd storage (issue6088)...
r42306 revlog-compression-zstd
revlogv1
share-safe: enable by default (BC)...
r49515 share-safe
upgrade: support upgrade to/from zstd storage (issue6088)...
r42306 sparserevlog
store
upgrade: allow upgrade to repository using sidedata...
r43404 #endif
test: no longer directly use the sidedata config and requirements...
r48001 Check upgrading to a revlog format supporting sidedata
------------------------------------------------------
upgrade: allow upgrade to repository using sidedata...
r43404
upgrade
upgrade: support upgrade to/from zstd storage (issue6088)...
r42306
upgrade: display sidedata before upgrade...
r47997 $ hg debugsidedata -c 0
test: no longer directly use the sidedata config and requirements...
r48001 $ hg --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data debugupgraderepo --run --no-backup --config "extensions.sidedata=$TESTDIR/testlib/ext-sidedata.py" --quiet
upgrade: support the --quiet flag...
r45302 upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, share-safe, store (no-zstd !)
preserved: dotencode, fncache, generaldelta, revlog-compression-zstd, share-safe, sparserevlog, store (zstd no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlog-compression-zstd, share-safe, sparserevlog, store (rust !)
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 removed: revlogv1
test: no longer directly use the sidedata config and requirements...
r48001 added: exp-revlogv2.2 (zstd !)
added: exp-revlogv2.2, sparserevlog (no-zstd !)
upgrade: support the --quiet flag...
r45302
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
upgrade: allow upgrade to repository using sidedata...
r43404 $ hg debugformat -v
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
fncache: yes yes yes
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: no no no
tracked-key: remove the dual write and rename to tracked-hint...
r49644 tracked-hint: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 dotencode: yes yes yes
generaldelta: yes yes yes
share-safe: enable by default (BC)...
r49515 share-safe: yes yes yes
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: yes yes yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no no no (no-rust !)
persistent-nodemap: yes yes no (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no no no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: yes no no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes yes yes
compression: zlib zlib zlib (no-zstd !)
revlog-compression: use zstd by default (if available)...
r47636 compression: zstd zstd zstd (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 compression-level: default default default
tests: use debugrequires in test-upgrade-repo.t...
r49502 $ hg debugrequires
upgrade: allow upgrade to repository using sidedata...
r43404 dotencode
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 exp-revlogv2.2
upgrade: allow upgrade to repository using sidedata...
r43404 fncache
generaldelta
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
test: fix zstd related output in pure tests...
r43414 revlog-compression-zstd (zstd !)
share-safe: enable by default (BC)...
r49515 share-safe
upgrade: allow upgrade to repository using sidedata...
r43404 sparserevlog
store
$ hg debugsidedata -c 0
2 sidedata entries
entry-0001 size 4
entry-0002 size 32
upgrade: allow for `sidedata` removal...
r43405 downgrade
test: no longer directly use the sidedata config and requirements...
r48001 $ hg debugupgraderepo --config experimental.revlogv2=no --run --no-backup --quiet
upgrade: support the --quiet flag...
r45302 upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, share-safe, sparserevlog, store (no-zstd !)
preserved: dotencode, fncache, generaldelta, revlog-compression-zstd, share-safe, sparserevlog, store (zstd no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlog-compression-zstd, share-safe, sparserevlog, store (rust !)
test: no longer directly use the sidedata config and requirements...
r48001 removed: exp-revlogv2.2
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 added: revlogv1
upgrade: support the --quiet flag...
r45302
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
upgrade: allow for `sidedata` removal...
r43405 $ hg debugformat -v
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
fncache: yes yes yes
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: no no no
tracked-key: remove the dual write and rename to tracked-hint...
r49644 tracked-hint: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 dotencode: yes yes yes
generaldelta: yes yes yes
share-safe: enable by default (BC)...
r49515 share-safe: yes yes yes
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: yes yes yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no no no (no-rust !)
persistent-nodemap: yes yes no (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no no no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: no no no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes yes yes
compression: zlib zlib zlib (no-zstd !)
revlog-compression: use zstd by default (if available)...
r47636 compression: zstd zstd zstd (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 compression-level: default default default
tests: use debugrequires in test-upgrade-repo.t...
r49502 $ hg debugrequires
upgrade: allow for `sidedata` removal...
r43405 dotencode
fncache
generaldelta
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
test: fix zstd related output in pure tests...
r43414 revlog-compression-zstd (zstd !)
upgrade: allow for `sidedata` removal...
r43405 revlogv1
share-safe: enable by default (BC)...
r49515 share-safe
upgrade: allow for `sidedata` removal...
r43405 sparserevlog
store
$ hg debugsidedata -c 0
upgrade from hgrc
$ cat >> .hg/hgrc << EOF
test: no longer directly use the sidedata config and requirements...
r48001 > [experimental]
> revlogv2=enable-unstable-format-and-corrupt-my-data
upgrade: allow for `sidedata` removal...
r43405 > EOF
upgrade: support the --quiet flag...
r45302 $ hg debugupgraderepo --run --no-backup --quiet
upgrade will perform the following actions:
requirements
share-safe: enable by default (BC)...
r49515 preserved: dotencode, fncache, generaldelta, share-safe, sparserevlog, store (no-zstd !)
preserved: dotencode, fncache, generaldelta, revlog-compression-zstd, share-safe, sparserevlog, store (zstd no-rust !)
preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlog-compression-zstd, share-safe, sparserevlog, store (rust !)
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 removed: revlogv1
test: no longer directly use the sidedata config and requirements...
r48001 added: exp-revlogv2.2
upgrade: support the --quiet flag...
r45302
upgrade: display the list of processed revlog before proceeding...
r46649 processed revlogs:
- all-filelogs
- changelog
- manifest
upgrade: allow for `sidedata` removal...
r43405 $ hg debugformat -v
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
fncache: yes yes yes
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: no no no
tracked-key: remove the dual write and rename to tracked-hint...
r49644 tracked-hint: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 dotencode: yes yes yes
generaldelta: yes yes yes
share-safe: enable by default (BC)...
r49515 share-safe: yes yes yes
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: yes yes yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no no no (no-rust !)
persistent-nodemap: yes yes no (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no no no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: yes yes no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes yes yes
compression: zlib zlib zlib (no-zstd !)
revlog-compression: use zstd by default (if available)...
r47636 compression: zstd zstd zstd (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 compression-level: default default default
tests: use debugrequires in test-upgrade-repo.t...
r49502 $ hg debugrequires
upgrade: allow for `sidedata` removal...
r43405 dotencode
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 exp-revlogv2.2
upgrade: allow for `sidedata` removal...
r43405 fncache
generaldelta
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap (rust !)
test: fix zstd related output in pure tests...
r43414 revlog-compression-zstd (zstd !)
share-safe: enable by default (BC)...
r49515 share-safe
upgrade: allow for `sidedata` removal...
r43405 sparserevlog
store
$ hg debugsidedata -c 0
Pulkit Goyal
upgrade: demonstrate that a no-op upgrade still performs everything...
r46840
Demonstrate that nothing to perform upgrade will still run all the way through
$ hg debugupgraderepo --run
Pulkit Goyal
upgrade: don't perform anything if nothing to do...
r46848 nothing to do
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111
dirstate-v2: test upgrade without rust too...
r49265 #if no-rust
$ cat << EOF >> $HGRCPATH
> [storage]
> dirstate-v2.slow-path = allow
> EOF
#endif
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111
Upgrade to dirstate-v2
dirstate-v2: rename the configuration to enable the format...
r49523 $ hg debugformat -v --config format.use-dirstate-v2=1 | grep dirstate-v2
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: no yes no
dirstate-v2: rename the configuration to enable the format...
r49523 $ hg debugupgraderepo --config format.use-dirstate-v2=1 --run
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 upgrade will perform the following actions:
requirements
dirstate-v2: test upgrade without rust too...
r49265 preserved: * (glob)
dirstate-v2: freeze the on-disk format...
r49116 added: dirstate-v2
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111
dirstate-v2
"hg status" will be faster
upgrade: only process revlogs that needs it by default...
r49277 no revlogs to process
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111
beginning upgrade...
repository locked and read-only
creating temporary repository to stage upgraded data: $TESTTMP/sparserevlogrepo/.hg/upgrade.* (glob)
(it is safe to interrupt this process any time before data migration completes)
upgrading to dirstate-v2 from v1
replaced files will be backed up at $TESTTMP/sparserevlogrepo/.hg/upgradebackup.* (glob)
removing temporary repository $TESTTMP/sparserevlogrepo/.hg/upgrade.* (glob)
$ ls .hg/upgradebackup.*/dirstate
.hg/upgradebackup.*/dirstate (glob)
test-upgrade: narrow the `debugformat` call when upgrading to dirstate-v2...
r49263 $ hg debugformat -v | grep dirstate-v2
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: yes no no
$ hg status
upgrade: don't use `dd status=none` in the test...
r49264 $ dd bs=12 count=1 if=.hg/dirstate 2> /dev/null
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2
Downgrade from dirstate-v2
$ hg debugupgraderepo --run
upgrade will perform the following actions:
requirements
dirstate-v2: test upgrade without rust too...
r49265 preserved: * (glob)
dirstate-v2: freeze the on-disk format...
r49116 removed: dirstate-v2
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111
upgrade: only process revlogs that needs it by default...
r49277 no revlogs to process
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111
beginning upgrade...
repository locked and read-only
creating temporary repository to stage upgraded data: $TESTTMP/sparserevlogrepo/.hg/upgrade.* (glob)
(it is safe to interrupt this process any time before data migration completes)
downgrading from dirstate-v2 to v1
replaced files will be backed up at $TESTTMP/sparserevlogrepo/.hg/upgradebackup.* (glob)
removing temporary repository $TESTTMP/sparserevlogrepo/.hg/upgrade.* (glob)
test-upgrade: narrow the `debugformat` call when upgrading to dirstate-v2...
r49263 $ hg debugformat -v | grep dirstate-v2
Simon Sapin
dirstate-v2: Add `hg debugupgraderepo` command support...
r48111 dirstate-v2: no no no
$ hg status
dirstate-v2: fix upgrade on an empty repository...
r49266
$ cd ..
dirstate-v2: upgrade and downgrade from and empty repository:
-------------------------------------------------------------
dirstate-v2: rename the configuration to enable the format...
r49523 $ hg init --config format.use-dirstate-v2=no dirstate-v2-empty
dirstate-v2: fix upgrade on an empty repository...
r49266 $ cd dirstate-v2-empty
$ hg debugformat | grep dirstate-v2
dirstate-v2: no
upgrade
dirstate-v2: rename the configuration to enable the format...
r49523 $ hg debugupgraderepo --run --config format.use-dirstate-v2=yes
dirstate-v2: fix upgrade on an empty repository...
r49266 upgrade will perform the following actions:
requirements
preserved: * (glob)
added: dirstate-v2
dirstate-v2
"hg status" will be faster
upgrade: only process revlogs that needs it by default...
r49277 no revlogs to process
dirstate-v2: fix upgrade on an empty repository...
r49266
beginning upgrade...
repository locked and read-only
creating temporary repository to stage upgraded data: $TESTTMP/dirstate-v2-empty/.hg/upgrade.* (glob)
(it is safe to interrupt this process any time before data migration completes)
upgrading to dirstate-v2 from v1
replaced files will be backed up at $TESTTMP/dirstate-v2-empty/.hg/upgradebackup.* (glob)
removing temporary repository $TESTTMP/dirstate-v2-empty/.hg/upgrade.* (glob)
$ hg debugformat | grep dirstate-v2
dirstate-v2: yes
downgrade
dirstate-v2: rename the configuration to enable the format...
r49523 $ hg debugupgraderepo --run --config format.use-dirstate-v2=no
dirstate-v2: fix upgrade on an empty repository...
r49266 upgrade will perform the following actions:
requirements
preserved: * (glob)
removed: dirstate-v2
upgrade: only process revlogs that needs it by default...
r49277 no revlogs to process
dirstate-v2: fix upgrade on an empty repository...
r49266
beginning upgrade...
repository locked and read-only
creating temporary repository to stage upgraded data: $TESTTMP/dirstate-v2-empty/.hg/upgrade.* (glob)
(it is safe to interrupt this process any time before data migration completes)
downgrading from dirstate-v2 to v1
replaced files will be backed up at $TESTTMP/dirstate-v2-empty/.hg/upgradebackup.* (glob)
removing temporary repository $TESTTMP/dirstate-v2-empty/.hg/upgrade.* (glob)
$ hg debugformat | grep dirstate-v2
dirstate-v2: no
$ cd ..
auto-upgrade: introduce a way to auto-upgrade to/from dirstate-v2...
r50090
Test automatic upgrade/downgrade
================================
For dirstate v2
---------------
create an initial repository
$ hg init auto-upgrade \
> --config format.use-dirstate-v2=no \
> --config format.use-dirstate-tracked-hint=yes \
> --config format.use-share-safe=no
$ hg debugbuilddag -R auto-upgrade --new-file .+5
$ hg -R auto-upgrade update
6 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg debugformat -R auto-upgrade | grep dirstate-v2
dirstate-v2: no
upgrade it to dirstate-v2 automatically
$ hg status -R auto-upgrade \
> --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
> --config format.use-dirstate-v2=yes
automatically upgrading repository to the `dirstate-v2` feature
(see `hg help config.format.use-dirstate-v2` for details)
$ hg debugformat -R auto-upgrade | grep dirstate-v2
dirstate-v2: yes
downgrade it from dirstate-v2 automatically
$ hg status -R auto-upgrade \
> --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
> --config format.use-dirstate-v2=no
automatically downgrading repository from the `dirstate-v2` feature
(see `hg help config.format.use-dirstate-v2` for details)
$ hg debugformat -R auto-upgrade | grep dirstate-v2
dirstate-v2: no
For multiple change at the same time
------------------------------------
$ hg debugformat -R auto-upgrade | egrep '(dirstate-v2|tracked|share-safe)'
dirstate-v2: no
tracked-hint: yes
share-safe: no
$ hg status -R auto-upgrade \
> --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
> --config format.use-dirstate-v2=yes \
> --config format.use-dirstate-tracked-hint.automatic-upgrade-of-mismatching-repositories=yes \
> --config format.use-dirstate-tracked-hint=no\
> --config format.use-share-safe.automatic-upgrade-of-mismatching-repositories=yes \
> --config format.use-share-safe=yes
automatically upgrading repository to the `dirstate-v2` feature
(see `hg help config.format.use-dirstate-v2` for details)
automatically upgrading repository to the `share-safe` feature
(see `hg help config.format.use-share-safe` for details)
automatically downgrading repository from the `tracked-hint` feature
(see `hg help config.format.use-dirstate-tracked-hint` for details)
$ hg debugformat -R auto-upgrade | egrep '(dirstate-v2|tracked|share-safe)'
dirstate-v2: yes
tracked-hint: no
share-safe: yes
auto-upgrade: add a test that will host "quiet" testing...
r50233 Quiet upgrade and downgrade
---------------------------
$ hg debugformat -R auto-upgrade | egrep '(dirstate-v2|tracked|share-safe)'
dirstate-v2: yes
tracked-hint: no
share-safe: yes
$ hg status -R auto-upgrade \
> --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
auto-upgrade: add an option to silence the dirstate-v2 message...
r50236 > --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories:quiet=yes \
auto-upgrade: add a test that will host "quiet" testing...
r50233 > --config format.use-dirstate-v2=no \
> --config format.use-dirstate-tracked-hint.automatic-upgrade-of-mismatching-repositories=yes \
auto-upgrade: add an option to silence the tracked-hint message...
r50237 > --config format.use-dirstate-tracked-hint.automatic-upgrade-of-mismatching-repositories:quiet=yes \
auto-upgrade: add a test that will host "quiet" testing...
r50233 > --config format.use-dirstate-tracked-hint=yes \
> --config format.use-share-safe.automatic-upgrade-of-mismatching-repositories=yes \
auto-upgrade: add an option to silence the share-safe message...
r50234 > --config format.use-share-safe.automatic-upgrade-of-mismatching-repositories:quiet=yes \
auto-upgrade: add a test that will host "quiet" testing...
r50233 > --config format.use-share-safe=no
$ hg debugformat -R auto-upgrade | egrep '(dirstate-v2|tracked|share-safe)'
dirstate-v2: no
tracked-hint: yes
share-safe: no
$ hg status -R auto-upgrade \
> --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
auto-upgrade: add an option to silence the dirstate-v2 message...
r50236 > --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories:quiet=yes \
auto-upgrade: add a test that will host "quiet" testing...
r50233 > --config format.use-dirstate-v2=yes \
> --config format.use-dirstate-tracked-hint.automatic-upgrade-of-mismatching-repositories=yes \
auto-upgrade: add an option to silence the tracked-hint message...
r50237 > --config format.use-dirstate-tracked-hint.automatic-upgrade-of-mismatching-repositories:quiet=yes \
auto-upgrade: add a test that will host "quiet" testing...
r50233 > --config format.use-dirstate-tracked-hint=no\
> --config format.use-share-safe.automatic-upgrade-of-mismatching-repositories=yes \
auto-upgrade: add an option to silence the share-safe message...
r50234 > --config format.use-share-safe.automatic-upgrade-of-mismatching-repositories:quiet=yes \
auto-upgrade: add a test that will host "quiet" testing...
r50233 > --config format.use-share-safe=yes
$ hg debugformat -R auto-upgrade | egrep '(dirstate-v2|tracked|share-safe)'
dirstate-v2: yes
tracked-hint: no
share-safe: yes
auto-upgrade: add a test case with no permission to lock the repository...
r50091 Attempting Auto-upgrade on a read-only repository
-------------------------------------------------
$ chmod -R a-w auto-upgrade
$ hg status -R auto-upgrade \
> --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
> --config format.use-dirstate-v2=no
$ hg debugformat -R auto-upgrade | grep dirstate-v2
dirstate-v2: yes
$ chmod -R u+w auto-upgrade
auto-upgrade: add a test case where the repository is already locked...
r50094 Attempting Auto-upgrade on a locked repository
----------------------------------------------
$ hg -R auto-upgrade debuglock --set-lock --quiet &
$ echo $! >> $DAEMON_PIDS
$ $RUNTESTDIR/testlib/wait-on-file 10 auto-upgrade/.hg/store/lock
$ hg status -R auto-upgrade \
> --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
> --config format.use-dirstate-v2=no
$ hg debugformat -R auto-upgrade | grep dirstate-v2
dirstate-v2: yes
$ killdaemons.py