Mercurial > hg-stable
changeset 6893:c3368278f86c
add test-verify
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Wed, 13 Aug 2008 20:18:41 -0500 |
parents | dab95717058d |
children | 29772acb5d2a |
files | tests/test-verify tests/test-verify.out |
diffstat | 2 files changed, 60 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-verify Wed Aug 13 20:18:41 2008 -0500 @@ -0,0 +1,26 @@ +#!/bin/sh + +echo % prepare repo +hg init +echo "some text" > FOO.txt +echo "another text" > bar.txt +echo "more text" > QUICK.txt +hg add +hg ci -d '0 0' -mtest1 + +echo +echo % verify +hg verify + +echo +echo % introduce some bugs in repo +cd .hg/store/data +mv _f_o_o.txt.i X_f_o_o.txt.i +mv bar.txt.i xbar.txt.i +rm _q_u_i_c_k.txt.i + +echo +echo % verify +hg verify + +return 0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-verify.out Wed Aug 13 20:18:41 2008 -0500 @@ -0,0 +1,34 @@ +% prepare repo +adding FOO.txt +adding QUICK.txt +adding bar.txt + +% verify +checking changesets +checking manifests +crosschecking files in changesets and manifests +checking files +3 files, 1 changesets, 3 total revisions + +% introduce some bugs in repo + +% verify +checking changesets +checking manifests +crosschecking files in changesets and manifests +checking files + ?: cannot decode filename 'data/X_f_o_o.txt.i' + data/FOO.txt.i@0: missing revlog! + 0: empty or missing FOO.txt + FOO.txt@0: f62022d3d590 in manifests not found + data/QUICK.txt.i@0: missing revlog! + 0: empty or missing QUICK.txt + QUICK.txt@0: 88b857db8eba in manifests not found + data/bar.txt.i@0: missing revlog! + 0: empty or missing bar.txt + bar.txt@0: 256559129457 in manifests not found +warning: orphan revlog 'data/xbar.txt.i' +3 files, 1 changesets, 0 total revisions +1 warnings encountered! +10 integrity errors encountered! +(first damaged changeset appears to be 0)