changeset 4776: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 438603c1eb6f
children 44e17f5029d0
files tests/test-copy2 tests/test-copy2.out
diffstat 2 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-copy2
+++ b/tests/test-copy2
@@ -7,11 +7,11 @@ hg commit -m1 -d"0 0"
 
 echo "# should show copy"
 hg copy foo bar
-hg debugstate|grep '^copy'
+hg st -C
 
 echo "# shouldn't show copy"
 hg commit -m2 -d"0 0"
-hg debugstate|grep '^copy'
+hg st -C
 
 echo "# should match"
 hg debugindex .hg/store/data/foo.i
@@ -26,7 +26,7 @@ hg debugrename bar
 
 hg copy -f foo bar
 echo "# should show copy"
-hg debugstate|grep '^copy'
+hg st -C
 hg commit -m3 -d"0 0"
 
 echo "# should show no parents for tip"
@@ -36,7 +36,7 @@ hg debugindex .hg/store/data/foo.i
 hg debugrename bar
 
 echo "# should show no copies"
-hg debugstate|grep '^copy'
+hg st -C
 
 echo "# copy --after on an added file"
 cp bar baz
--- a/tests/test-copy2.out
+++ b/tests/test-copy2.out
@@ -1,5 +1,6 @@
 # should show copy
-copy: foo -> bar
+A bar
+  foo
 # shouldn't show copy
 # should match
    rev    offset  length   base linkrev nodeid       p1           p2
@@ -8,7 +9,8 @@ bar renamed from foo:2ed2a3912a0b2450204
 # should not be renamed
 bar not renamed
 # should show copy
-copy: foo -> bar
+M bar
+  foo
 # should show no parents for tip
    rev    offset  length   base linkrev nodeid       p1           p2
      0         0      69      0       1 6ca237634e1f 000000000000 000000000000