Mercurial > hg
annotate tests/test-push-validation.t @ 12279:28e2e3804f2e
combine tests
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Tue, 14 Sep 2010 12:20:51 +0200 |
parents | tests/test-push-validation@b26c4a89a143 |
children | 4134686b83e1 |
rev | line source |
---|---|
12279 | 1 $ hg init test |
2 $ cd test | |
3 | |
4 $ cat > .hg/hgrc <<EOF | |
5 > [server] | |
6 > validate=1 | |
7 > EOF | |
8 | |
9 $ echo alpha > alpha | |
10 $ echo beta > beta | |
11 $ hg addr | |
12 adding alpha | |
13 adding beta | |
14 $ hg ci -m 1 | |
15 | |
16 $ cd .. | |
17 $ hg clone test test-clone | |
18 updating to branch default | |
19 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
20 | |
21 $ cd test-clone | |
22 $ cp .hg/store/data/beta.i tmp | |
23 $ echo blah >> beta | |
24 $ hg ci -m '2 (corrupt)' | |
25 $ mv tmp .hg/store/data/beta.i | |
10418
5fc090ba08a6
localrepo: add optional validation (defaults to off) for incoming changes
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
26 |
12279 | 27 Expected to fail: |
28 | |
29 $ hg verify | |
30 checking changesets | |
31 checking manifests | |
32 crosschecking files in changesets and manifests | |
33 checking files | |
34 beta@1: dddc47b3ba30 in manifests not found | |
35 2 files, 2 changesets, 2 total revisions | |
36 1 integrity errors encountered! | |
37 (first damaged changeset appears to be 1) | |
10418
5fc090ba08a6
localrepo: add optional validation (defaults to off) for incoming changes
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
38 |
12279 | 39 Expected to fail: |
10418
5fc090ba08a6
localrepo: add optional validation (defaults to off) for incoming changes
Augie Fackler <durin42@gmail.com>
parents:
diff
changeset
|
40 |
12279 | 41 $ hg push |
42 pushing to .* | |
43 searching for changes | |
44 adding changesets | |
45 adding manifests | |
46 adding file changes | |
47 transaction abort! | |
48 rollback completed | |
49 abort: missing file data for beta:dddc47b3ba30e54484720ce0f4f768a0f4b6efb9 - run hg verify | |
50 | |
51 $ true | |
52 |