The copy tests don't need to invoke cp any longer.
--- a/tests/test-copy Wed Sep 14 15:41:22 2005 -0700
+++ b/tests/test-copy Wed Sep 14 16:31:03 2005 -0700
@@ -5,7 +5,6 @@
hg add a
hg commit -m "1" -d "0 0"
hg status
-cp a b
hg copy a b
hg status
hg --debug commit -m "2" -d "0 0"
--- a/tests/test-copy2 Wed Sep 14 15:41:22 2005 -0700
+++ b/tests/test-copy2 Wed Sep 14 16:31:03 2005 -0700
@@ -6,7 +6,6 @@
hg commit -m1 -d"0 0"
echo "# should show copy"
-cp foo bar
hg copy foo bar
hg debugstate|grep '^copy'
@@ -25,7 +24,6 @@
echo "# should not be renamed"
hg debugrename bar
-cp foo bar
hg copy -f foo bar
echo "# should show copy"
hg debugstate|grep '^copy'