test-copy2: use status -C instead of debugstate | grep copy
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Tue, 03 Jul 2007 03:06:40 -0300
changeset 4743 719c402258ee
parent 4742 438603c1eb6f
child 4744 44e17f5029d0
test-copy2: use status -C instead of debugstate | grep copy
tests/test-copy2
tests/test-copy2.out
--- a/tests/test-copy2	Tue Jul 03 03:06:40 2007 -0300
+++ b/tests/test-copy2	Tue Jul 03 03:06:40 2007 -0300
@@ -7,11 +7,11 @@
 
 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 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 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	Tue Jul 03 03:06:40 2007 -0300
+++ b/tests/test-copy2.out	Tue Jul 03 03:06:40 2007 -0300
@@ -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 @@
 # 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