tests/test-upgrade-repo.t
changeset 48486 8405c1bffacf
parent 48485 1d0978cfe968
child 48487 62e6222cc5b6
equal deleted inserted replaced
48485:1d0978cfe968 48486:8405c1bffacf
   399   [formatvariant.name.uptodate|plain-cl-delta:    ][formatvariant.repo.uptodate| yes][formatvariant.config.default|    yes][formatvariant.default|     yes]
   399   [formatvariant.name.uptodate|plain-cl-delta:    ][formatvariant.repo.uptodate| yes][formatvariant.config.default|    yes][formatvariant.default|     yes]
   400   [formatvariant.name.uptodate|compression:       ][formatvariant.repo.uptodate| zlib][formatvariant.config.default|   zlib][formatvariant.default|    zlib] (no-zstd !)
   400   [formatvariant.name.uptodate|compression:       ][formatvariant.repo.uptodate| zlib][formatvariant.config.default|   zlib][formatvariant.default|    zlib] (no-zstd !)
   401   [formatvariant.name.mismatchdefault|compression:       ][formatvariant.repo.mismatchdefault| zlib][formatvariant.config.special|   zlib][formatvariant.default|    zstd] (zstd !)
   401   [formatvariant.name.mismatchdefault|compression:       ][formatvariant.repo.mismatchdefault| zlib][formatvariant.config.special|   zlib][formatvariant.default|    zstd] (zstd !)
   402   [formatvariant.name.uptodate|compression-level: ][formatvariant.repo.uptodate| default][formatvariant.config.default| default][formatvariant.default| default]
   402   [formatvariant.name.uptodate|compression-level: ][formatvariant.repo.uptodate| default][formatvariant.config.default| default][formatvariant.default| default]
   403   $ hg debugupgraderepo
   403   $ hg debugupgraderepo
       
   404   note:    selecting all-filelogs for processing to change: dotencode
       
   405   note:    selecting all-manifestlogs for processing to change: dotencode
       
   406   note:    selecting changelog for processing to change: dotencode
       
   407   
   404   repository lacks features recommended by current config options:
   408   repository lacks features recommended by current config options:
   405   
   409   
   406   fncache
   410   fncache
   407      long and reserved filenames may not work correctly; repository performance is sub-optimal
   411      long and reserved filenames may not work correctly; repository performance is sub-optimal
   408   
   412   
   471     - changelog
   475     - changelog
   472     - manifest
   476     - manifest
   473   
   477   
   474 
   478 
   475   $ hg --config format.dotencode=false debugupgraderepo
   479   $ hg --config format.dotencode=false debugupgraderepo
       
   480   note:    selecting all-filelogs for processing to change: fncache
       
   481   note:    selecting all-manifestlogs for processing to change: fncache
       
   482   note:    selecting changelog for processing to change: fncache
       
   483   
   476   repository lacks features recommended by current config options:
   484   repository lacks features recommended by current config options:
   477   
   485   
   478   fncache
   486   fncache
   479      long and reserved filenames may not work correctly; repository performance is sub-optimal
   487      long and reserved filenames may not work correctly; repository performance is sub-optimal
   480   
   488   
   565   .hg/store/data/f0.i
   573   .hg/store/data/f0.i
   566   .hg/store/data/f2.d
   574   .hg/store/data/f2.d
   567   .hg/store/data/f2.i
   575   .hg/store/data/f2.i
   568 
   576 
   569   $ hg debugupgraderepo --run --config format.sparse-revlog=false
   577   $ hg debugupgraderepo --run --config format.sparse-revlog=false
       
   578   note:    selecting all-filelogs for processing to change: generaldelta
       
   579   note:    selecting all-manifestlogs for processing to change: generaldelta
       
   580   note:    selecting changelog for processing to change: generaldelta
       
   581   
   570   upgrade will perform the following actions:
   582   upgrade will perform the following actions:
   571   
   583   
   572   requirements
   584   requirements
   573      preserved: dotencode, fncache, revlogv1, store (no-rust !)
   585      preserved: dotencode, fncache, revlogv1, store (no-rust !)
   574      preserved: dotencode, fncache, persistent-nodemap, revlogv1, store (rust !)
   586      preserved: dotencode, fncache, persistent-nodemap, revlogv1, store (rust !)
   669 
   681 
   670 unless --no-backup is passed
   682 unless --no-backup is passed
   671 
   683 
   672   $ rm -rf .hg/upgradebackup.*/
   684   $ rm -rf .hg/upgradebackup.*/
   673   $ hg debugupgraderepo --run --no-backup
   685   $ hg debugupgraderepo --run --no-backup
       
   686   note:    selecting all-filelogs for processing to change: sparserevlog
       
   687   note:    selecting all-manifestlogs for processing to change: sparserevlog
       
   688   note:    selecting changelog for processing to change: sparserevlog
       
   689   
   674   upgrade will perform the following actions:
   690   upgrade will perform the following actions:
   675   
   691   
   676   requirements
   692   requirements
   677      preserved: dotencode, fncache, generaldelta, revlogv1, store (no-rust !)
   693      preserved: dotencode, fncache, generaldelta, revlogv1, store (no-rust !)
   678      preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, store (rust !)
   694      preserved: dotencode, fncache, generaldelta, persistent-nodemap, revlogv1, store (rust !)
   959     - all-filelogs
   975     - all-filelogs
   960     - changelog
   976     - changelog
   961     - manifest
   977     - manifest
   962   
   978   
   963   $ hg debugupgrade --optimize re-delta-parent --run --manifest --no-backup --debug --traceback
   979   $ hg debugupgrade --optimize re-delta-parent --run --manifest --no-backup --debug --traceback
       
   980   note:    selecting all-filelogs for processing to change: sparserevlog
       
   981   note:    selecting changelog for processing to change: sparserevlog
       
   982   
   964   ignoring revlogs selection flags, format requirements change: sparserevlog
   983   ignoring revlogs selection flags, format requirements change: sparserevlog
   965   upgrade will perform the following actions:
   984   upgrade will perform the following actions:
   966   
   985   
   967   requirements
   986   requirements
   968      preserved: dotencode, fncache, generaldelta, revlogv1, store (no-rust !)
   987      preserved: dotencode, fncache, generaldelta, revlogv1, store (no-rust !)
  1014 
  1033 
  1015 Check you can't skip revlog clone during important format upgrade
  1034 Check you can't skip revlog clone during important format upgrade
  1016 
  1035 
  1017   $ echo "sparse-revlog=yes" >> .hg/hgrc
  1036   $ echo "sparse-revlog=yes" >> .hg/hgrc
  1018   $ hg debugupgrade --optimize re-delta-parent --run --manifest --no-backup --debug --traceback
  1037   $ hg debugupgrade --optimize re-delta-parent --run --manifest --no-backup --debug --traceback
       
  1038   note:    selecting all-filelogs for processing to change: sparserevlog
       
  1039   note:    selecting changelog for processing to change: sparserevlog
       
  1040   
  1019   ignoring revlogs selection flags, format requirements change: sparserevlog
  1041   ignoring revlogs selection flags, format requirements change: sparserevlog
  1020   upgrade will perform the following actions:
  1042   upgrade will perform the following actions:
  1021   
  1043   
  1022   requirements
  1044   requirements
  1023      preserved: dotencode, fncache, generaldelta, revlogv1, store (no-rust !)
  1045      preserved: dotencode, fncache, generaldelta, revlogv1, store (no-rust !)