Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | tests/test-transaction-rollback-on-revlog-split.t (21 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | valentin.gatienbaron | ||
Closed | valentin.gatienbaron |
.hg/store/data/file.i: size=128 | .hg/store/data/file.i: size=128 | ||||
$ hg tip | $ hg tip | ||||
changeset: 1:3ce491143aec | changeset: 1:3ce491143aec | ||||
tag: tip | tag: tip | ||||
user: test | user: test | ||||
date: Thu Jan 01 00:00:00 1970 +0000 | date: Thu Jan 01 00:00:00 1970 +0000 | ||||
summary: _ | summary: _ | ||||
$ hg verify | $ hg verify -q | ||||
checking changesets | |||||
checking manifests | |||||
crosschecking files in changesets and manifests | |||||
checking files | |||||
warning: revlog 'data/file.d' not in fncache! | warning: revlog 'data/file.d' not in fncache! | ||||
checked 2 changesets with 2 changes to 1 files | |||||
1 warnings encountered! | 1 warnings encountered! | ||||
hint: run "hg debugrebuildfncache" to recover from corrupt fncache | hint: run "hg debugrebuildfncache" to recover from corrupt fncache | ||||
$ cd .. | $ cd .. | ||||
Now retry the procedure but intercept the rename of the index and check that | Now retry the procedure but intercept the rename of the index and check that | ||||
the journal does not contain the new index size. This demonstrates the edge case | the journal does not contain the new index size. This demonstrates the edge case | ||||
where the data file is left as garbage. | where the data file is left as garbage. | ||||
.hg/store/data/file.i: size=1174 | .hg/store/data/file.i: size=1174 | ||||
$ hg tip | $ hg tip | ||||
changeset: 1:3ce491143aec | changeset: 1:3ce491143aec | ||||
tag: tip | tag: tip | ||||
user: test | user: test | ||||
date: Thu Jan 01 00:00:00 1970 +0000 | date: Thu Jan 01 00:00:00 1970 +0000 | ||||
summary: _ | summary: _ | ||||
$ hg verify | $ hg verify -q | ||||
checking changesets | |||||
checking manifests | |||||
crosschecking files in changesets and manifests | |||||
checking files | |||||
checked 2 changesets with 2 changes to 1 files | |||||
$ cd .. | $ cd .. | ||||
Repeat the original test but let hg rollback the transaction. | Repeat the original test but let hg rollback the transaction. | ||||
$ hg clone -r 1 troffset-computation troffset-computation-copy-rb --config format.revlog-compression=none -q | $ hg clone -r 1 troffset-computation troffset-computation-copy-rb --config format.revlog-compression=none -q | ||||
$ cd troffset-computation-copy-rb | $ cd troffset-computation-copy-rb | ||||
$ cat > .hg/hgrc <<EOF | $ cat > .hg/hgrc <<EOF | ||||
.hg/store/data/file.i: size=128 | .hg/store/data/file.i: size=128 | ||||
$ hg tip | $ hg tip | ||||
changeset: 1:3ce491143aec | changeset: 1:3ce491143aec | ||||
tag: tip | tag: tip | ||||
user: test | user: test | ||||
date: Thu Jan 01 00:00:00 1970 +0000 | date: Thu Jan 01 00:00:00 1970 +0000 | ||||
summary: _ | summary: _ | ||||
$ hg verify | $ hg verify -q | ||||
checking changesets | |||||
checking manifests | |||||
crosschecking files in changesets and manifests | |||||
checking files | |||||
warning: revlog 'data/file.d' not in fncache! | warning: revlog 'data/file.d' not in fncache! | ||||
checked 2 changesets with 2 changes to 1 files | |||||
1 warnings encountered! | 1 warnings encountered! | ||||
hint: run "hg debugrebuildfncache" to recover from corrupt fncache | hint: run "hg debugrebuildfncache" to recover from corrupt fncache | ||||
$ cd .. | $ cd .. | ||||