# HG changeset patch # User Adrian Buehlmann # Date 1218676721 18000 # Node ID c3368278f86c6e8c3733a67457595395369c1e43 # Parent dab95717058df0bd25f490f2cdce82a2e5eb7f03 add test-verify diff -r dab95717058d -r c3368278f86c tests/test-verify --- /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 diff -r dab95717058d -r c3368278f86c tests/test-verify.out --- /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)