# HG changeset patch # User Alexis S. L. Carvalho # Date 1183442800 10800 # Node ID 719c402258ee2db91e7de477c8ac61d674fe0e2a # Parent 438603c1eb6f41800b08be3e0acc9424dbeeed36 test-copy2: use status -C instead of debugstate | grep copy diff --git a/tests/test-copy2 b/tests/test-copy2 --- 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 diff --git a/tests/test-copy2.out b/tests/test-copy2.out --- 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