tests/test-upgrade-repo.t
changeset 30779 38aa1ca97b6a
parent 30777 7de7afd8bdd9
child 30780 2603d04889e1
equal deleted inserted replaced
30778:1c7368d1a25f 30779:38aa1ca97b6a
   192      preserved: dotencode, fncache, generaldelta, revlogv1, store
   192      preserved: dotencode, fncache, generaldelta, revlogv1, store
   193   
   193   
   194   beginning upgrade...
   194   beginning upgrade...
   195   repository locked and read-only
   195   repository locked and read-only
   196   creating temporary repository to stage migrated data: $TESTTMP/modern/.hg/upgrade.* (glob)
   196   creating temporary repository to stage migrated data: $TESTTMP/modern/.hg/upgrade.* (glob)
       
   197   (it is safe to interrupt this process any time before data migration completes)
       
   198   data fully migrated to temporary repository
   197   marking source repository as being upgraded; clients will be unable to read from repository
   199   marking source repository as being upgraded; clients will be unable to read from repository
   198   starting in-place swap of repository data
   200   starting in-place swap of repository data
   199   replaced files will be backed up at $TESTTMP/modern/.hg/upgradebackup.* (glob)
   201   replaced files will be backed up at $TESTTMP/modern/.hg/upgradebackup.* (glob)
       
   202   replacing store...
       
   203   store replacement complete; repository was inconsistent for *s (glob)
   200   finalizing requirements file and making repository readable again
   204   finalizing requirements file and making repository readable again
   201   removing temporary repository $TESTTMP/modern/.hg/upgrade.* (glob)
   205   removing temporary repository $TESTTMP/modern/.hg/upgrade.* (glob)
   202   copy of old repository backed up at $TESTTMP/modern/.hg/upgradebackup.* (glob)
   206   copy of old repository backed up at $TESTTMP/modern/.hg/upgradebackup.* (glob)
   203   the old repository will not be deleted; remove it to free up disk space once the upgraded repository is verified
   207   the old repository will not be deleted; remove it to free up disk space once the upgraded repository is verified
   204 
   208 
   225      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
   229      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
   226   
   230   
   227   beginning upgrade...
   231   beginning upgrade...
   228   repository locked and read-only
   232   repository locked and read-only
   229   creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
   233   creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob)
       
   234   (it is safe to interrupt this process any time before data migration completes)
       
   235   migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog)
       
   236   migrating 341 bytes in store; 401 bytes tracked data
       
   237   migrating 3 filelogs containing 3 revisions (0 bytes in store; 0 bytes tracked data)
       
   238   finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes
       
   239   migrating 1 manifests containing 3 revisions (157 bytes in store; 220 bytes tracked data)
       
   240   finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes
       
   241   migrating changelog containing 3 revisions (184 bytes in store; 181 bytes tracked data)
       
   242   finished migrating 3 changelog revisions; change in size: 0 bytes
       
   243   finished migrating 9 total revisions; total change in store size: 0 bytes
       
   244   data fully migrated to temporary repository
   230   marking source repository as being upgraded; clients will be unable to read from repository
   245   marking source repository as being upgraded; clients will be unable to read from repository
   231   starting in-place swap of repository data
   246   starting in-place swap of repository data
   232   replaced files will be backed up at $TESTTMP/upgradegd/.hg/upgradebackup.* (glob)
   247   replaced files will be backed up at $TESTTMP/upgradegd/.hg/upgradebackup.* (glob)
       
   248   replacing store...
       
   249   store replacement complete; repository was inconsistent for *s (glob)
   233   finalizing requirements file and making repository readable again
   250   finalizing requirements file and making repository readable again
   234   removing temporary repository $TESTTMP/upgradegd/.hg/upgrade.* (glob)
   251   removing temporary repository $TESTTMP/upgradegd/.hg/upgrade.* (glob)
   235   copy of old repository backed up at $TESTTMP/upgradegd/.hg/upgradebackup.* (glob)
   252   copy of old repository backed up at $TESTTMP/upgradegd/.hg/upgradebackup.* (glob)
   236   the old repository will not be deleted; remove it to free up disk space once the upgraded repository is verified
   253   the old repository will not be deleted; remove it to free up disk space once the upgraded repository is verified
   237 
   254 
   250   fncache
   267   fncache
   251   generaldelta
   268   generaldelta
   252   revlogv1
   269   revlogv1
   253   store
   270   store
   254 
   271 
       
   272 store directory has files we expect
       
   273 
       
   274   $ ls .hg/store
       
   275   00changelog.i
       
   276   00manifest.i
       
   277   data
       
   278   fncache
       
   279   undo
       
   280   undo.backupfiles
       
   281   undo.phaseroots
       
   282 
       
   283 manifest should be generaldelta
       
   284 
       
   285   $ hg debugrevlog -m | grep flags
       
   286   flags  : inline, generaldelta
       
   287 
       
   288 verify should be happy
       
   289 
       
   290   $ hg verify
       
   291   checking changesets
       
   292   checking manifests
       
   293   crosschecking files in changesets and manifests
       
   294   checking files
       
   295   3 files, 3 changesets, 3 total revisions
       
   296 
       
   297 old store should be backed up
       
   298 
       
   299   $ ls .hg/upgradebackup.*/store
       
   300   00changelog.i
       
   301   00manifest.i
       
   302   data
       
   303   fncache
       
   304   lock
       
   305   phaseroots
       
   306   undo
       
   307   undo.backup.fncache
       
   308   undo.backupfiles
       
   309   undo.phaseroots
       
   310 
   255   $ cd ..
   311   $ cd ..