comparison tests/test-upgrade-repo.t @ 30780:2603d04889e1

repair: copy non-revlog store files during upgrade The store contains more than just revlogs. This patch teaches the upgrade code to copy regular files as well. As the test changes demonstrate, the phaseroots file is now copied.
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 24 Nov 2016 18:34:50 -0800
parents 38aa1ca97b6a
children f2c069bf78ee
comparison
equal deleted inserted replaced
30779:38aa1ca97b6a 30780:2603d04889e1
239 migrating 1 manifests containing 3 revisions (157 bytes in store; 220 bytes tracked data) 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 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) 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 242 finished migrating 3 changelog revisions; change in size: 0 bytes
243 finished migrating 9 total revisions; total change in store size: 0 bytes 243 finished migrating 9 total revisions; total change in store size: 0 bytes
244 copying phaseroots
244 data fully migrated to temporary repository 245 data fully migrated to temporary repository
245 marking source repository as being upgraded; clients will be unable to read from repository 246 marking source repository as being upgraded; clients will be unable to read from repository
246 starting in-place swap of repository data 247 starting in-place swap of repository data
247 replaced files will be backed up at $TESTTMP/upgradegd/.hg/upgradebackup.* (glob) 248 replaced files will be backed up at $TESTTMP/upgradegd/.hg/upgradebackup.* (glob)
248 replacing store... 249 replacing store...
274 $ ls .hg/store 275 $ ls .hg/store
275 00changelog.i 276 00changelog.i
276 00manifest.i 277 00manifest.i
277 data 278 data
278 fncache 279 fncache
280 phaseroots
279 undo 281 undo
280 undo.backupfiles 282 undo.backupfiles
281 undo.phaseroots 283 undo.phaseroots
282 284
283 manifest should be generaldelta 285 manifest should be generaldelta