comparison tests/test-copy2 @ 4743:719c402258ee

test-copy2: use status -C instead of debugstate | grep copy
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 03 Jul 2007 03:06:40 -0300
parents de8ec7e1753a
children 44e17f5029d0
comparison
equal deleted inserted replaced
4742:438603c1eb6f 4743:719c402258ee
5 hg add foo 5 hg add foo
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 hg copy foo bar 9 hg copy foo bar
10 hg debugstate|grep '^copy' 10 hg st -C
11 11
12 echo "# shouldn't show copy" 12 echo "# shouldn't show copy"
13 hg commit -m2 -d"0 0" 13 hg commit -m2 -d"0 0"
14 hg debugstate|grep '^copy' 14 hg st -C
15 15
16 echo "# should match" 16 echo "# should match"
17 hg debugindex .hg/store/data/foo.i 17 hg debugindex .hg/store/data/foo.i
18 hg debugrename bar 18 hg debugrename bar
19 19
24 echo "# should not be renamed" 24 echo "# should not be renamed"
25 hg debugrename bar 25 hg debugrename bar
26 26
27 hg copy -f foo bar 27 hg copy -f foo bar
28 echo "# should show copy" 28 echo "# should show copy"
29 hg debugstate|grep '^copy' 29 hg st -C
30 hg commit -m3 -d"0 0" 30 hg commit -m3 -d"0 0"
31 31
32 echo "# should show no parents for tip" 32 echo "# should show no parents for tip"
33 hg debugindex .hg/store/data/bar.i 33 hg debugindex .hg/store/data/bar.i
34 echo "# should match" 34 echo "# should match"
35 hg debugindex .hg/store/data/foo.i 35 hg debugindex .hg/store/data/foo.i
36 hg debugrename bar 36 hg debugrename bar
37 37
38 echo "# should show no copies" 38 echo "# should show no copies"
39 hg debugstate|grep '^copy' 39 hg st -C
40 40
41 echo "# copy --after on an added file" 41 echo "# copy --after on an added file"
42 cp bar baz 42 cp bar baz
43 hg add baz 43 hg add baz
44 hg cp -A bar baz 44 hg cp -A bar baz