comparison tests/test-copy2 @ 1127:19b048da4da9

Fixed test-copy2 with only looking at copied files.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 28 Aug 2005 16:37:24 +0200
parents 30ab5b8ee8ec
children 235e0effa672
comparison
equal deleted inserted replaced
1126:624a3a4fa232 1127:19b048da4da9
6 hg commit -m1 -d"0 0" 6 hg commit -m1 -d"0 0"
7 7
8 echo "# should show copy" 8 echo "# should show copy"
9 cp foo bar 9 cp foo bar
10 hg copy foo bar 10 hg copy foo bar
11 hg debugstate 11 hg debugstate|grep ^copy
12 12
13 echo "# shouldn't show copy" 13 echo "# shouldn't show copy"
14 hg commit -m2 -d"0 0" 14 hg commit -m2 -d"0 0"
15 hg debugstate 15 hg debugstate|grep ^copy
16 16
17 echo "# should match" 17 echo "# should match"
18 hg debugindex .hg/data/foo.i 18 hg debugindex .hg/data/foo.i
19 hg debugrename bar 19 hg debugrename bar
20 20
26 hg debugrename bar 26 hg debugrename bar
27 27
28 cp foo bar 28 cp foo bar
29 hg copy foo bar 29 hg copy foo bar
30 echo "# should show copy" 30 echo "# should show copy"
31 hg debugstate 31 hg debugstate|grep ^copy
32 hg commit -m3 -d"0 0" 32 hg commit -m3 -d"0 0"
33 33
34 echo "# should show no parents for tip" 34 echo "# should show no parents for tip"
35 hg debugindex .hg/data/bar.i 35 hg debugindex .hg/data/bar.i
36 echo "# should match" 36 echo "# should match"
37 hg debugindex .hg/data/foo.i 37 hg debugindex .hg/data/foo.i
38 hg debugrename bar 38 hg debugrename bar
39 39
40 echo "# should show no copies" 40 echo "# should show no copies"
41 hg debugstate 41 hg debugstate|grep ^copy
42
43 exit 0