Mercurial > hg
comparison tests/test-pull-pull-corruption2 @ 2000:6f6e210b38cf
add benoit's test for issue148.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Fri, 24 Mar 2006 10:31:23 -0800 |
parents | |
children | d181845bdc51 |
comparison
equal
deleted
inserted
replaced
1999:fdb3a72ef664 | 2000:6f6e210b38cf |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Corrupt an hg repo with two pulls. | |
4 # | |
5 | |
6 # create one repo with a long history | |
7 hg init source1 | |
8 cd source1 | |
9 touch foo | |
10 hg add foo | |
11 for i in 1 2 3 4 5 6 7 8 9 10; do | |
12 echo $i >> foo | |
13 hg ci -m $i | |
14 done | |
15 cd .. | |
16 | |
17 # create a third repo to pull both other repos into it | |
18 hg init version2 | |
19 hg -R version2 pull source1 & | |
20 sleep 1 | |
21 | |
22 hg clone --pull -U version2 corrupted | |
23 hg -R corrupted verify | |
24 hg -R version2 verify |