##// END OF EJS Templates
transaction: refactor transaction.abort and rollback to use the same code...
transaction: refactor transaction.abort and rollback to use the same code This adds a change to the way that abort is processed, as it will not continue truncating files beyond the first failure, otherwise the respective functionality is maintained, i.e. abort will not unlink files, but rollback will. Co-contributor: Sune Foldager <cryo@cyanite.org>

File last commit:

r8294:48a382c2 default
r8294:48a382c2 default
Show More
test-repair-strip.out
86 lines | 2.3 KiB | text/plain | TextLexer
/ tests / test-repair-strip.out
Henrik Stuart
test: change repair strip test to illustrate manifest errors
r8293 % before update 0, strip 2
Henrik Stuart
strip: make repair.strip transactional to avoid repository corruption...
r8073 changeset: 0:cb9a9f314b8b
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: a
saving bundle to
transaction abort!
failed to truncate data/b.i
rollback failed - please run hg recover
abort: Permission denied .hg/store/data/b.i
Henrik Stuart
test: change repair strip test to illustrate manifest errors
r8293 % after update 0, strip 2
Henrik Stuart
strip: make repair.strip transactional to avoid repository corruption...
r8073 checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
Henrik Stuart
test: change repair strip test to illustrate manifest errors
r8293 b@?: rev 1 points to nonexistent changeset 2
(expected 1)
b@?: 736c29771fba not in manifests
Henrik Stuart
transaction: refactor transaction.abort and rollback to use the same code...
r8294 warning: orphan revlog 'data/c.i'
Henrik Stuart
test: change repair strip test to illustrate manifest errors
r8293 2 files, 2 changesets, 3 total revisions
Henrik Stuart
transaction: refactor transaction.abort and rollback to use the same code...
r8294 2 warnings encountered!
Henrik Stuart
test: change repair strip test to illustrate manifest errors
r8293 2 integrity errors encountered!
Henrik Stuart
strip: make repair.strip transactional to avoid repository corruption...
r8073 % journal contents
00changelog.i
00manifest.i
data/b.i
data/c.i
rolling back interrupted transaction
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
Henrik Stuart
test: change repair strip test to illustrate manifest errors
r8293 2 files, 2 changesets, 2 total revisions
% before update 0, strip 2
Henrik Stuart
strip: make repair.strip transactional to avoid repository corruption...
r8073 changeset: 0:cb9a9f314b8b
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: a
abort: Permission denied .hg/store/data/b.i
Henrik Stuart
test: change repair strip test to illustrate manifest errors
r8293 % after update 0, strip 2
Henrik Stuart
strip: make repair.strip transactional to avoid repository corruption...
r8073 checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
Henrik Stuart
test: change repair strip test to illustrate manifest errors
r8293 3 files, 4 changesets, 4 total revisions
Henrik Stuart
strip: make repair.strip transactional to avoid repository corruption...
r8073 % journal contents
cat: .hg/store/journal: No such file or directory
Henrik Stuart
test: change repair strip test to illustrate manifest errors
r8293 % before update 0, strip 2
Henrik Stuart
strip: make repair.strip transactional to avoid repository corruption...
r8073 changeset: 0:cb9a9f314b8b
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: a
saving bundle to
transaction abort!
Henrik Stuart
test: change repair strip test to illustrate manifest errors
r8293 failed to truncate 00manifest.i
Henrik Stuart
strip: make repair.strip transactional to avoid repository corruption...
r8073 rollback failed - please run hg recover
Henrik Stuart
test: change repair strip test to illustrate manifest errors
r8293 abort: Permission denied .hg/store/00manifest.i
% after update 0, strip 2
Henrik Stuart
strip: make repair.strip transactional to avoid repository corruption...
r8073 checking changesets
checking manifests
Henrik Stuart
test: change repair strip test to illustrate manifest errors
r8293 manifest@?: rev 2 points to nonexistent changeset 2
manifest@?: rev 3 points to nonexistent changeset 3
Henrik Stuart
strip: make repair.strip transactional to avoid repository corruption...
r8073 crosschecking files in changesets and manifests
Henrik Stuart
transaction: refactor transaction.abort and rollback to use the same code...
r8294 c@3: in manifest but not in changeset
Henrik Stuart
strip: make repair.strip transactional to avoid repository corruption...
r8073 checking files
Henrik Stuart
transaction: refactor transaction.abort and rollback to use the same code...
r8294 b@?: rev 1 points to nonexistent changeset 2
(expected 1)
c@?: rev 0 points to nonexistent changeset 3
3 files, 2 changesets, 4 total revisions
1 warnings encountered!
5 integrity errors encountered!
(first damaged changeset appears to be 3)
Henrik Stuart
strip: make repair.strip transactional to avoid repository corruption...
r8073 % journal contents
00changelog.i
00manifest.i
data/b.i
data/c.i
rolling back interrupted transaction
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
Henrik Stuart
test: change repair strip test to illustrate manifest errors
r8293 2 files, 2 changesets, 2 total revisions