tests/test-rename
changeset 1513 5c3b93b244aa
parent 1512 53ad6ee6ede4
child 1514 faf46d810a85
--- a/tests/test-rename	Tue Nov 08 10:35:05 2005 -0800
+++ b/tests/test-rename	Tue Nov 08 10:35:09 2005 -0800
@@ -58,3 +58,21 @@
 hg rename 're:d1/([^a][^/]*/)*a.*' d2/d21
 hg status
 hg update -C
+
+echo "# attempt to overwrite an existing file"
+echo "ca" > d1/ca
+hg rename d1/ba d1/ca
+hg status
+hg update -C
+
+echo "# forced overwrite of an existing file"
+echo "ca" > d1/ca
+hg rename --force d1/ba d1/ca
+hg status
+hg update -C
+
+echo "# replace a symlink with a file"
+ln -s ba d1/ca
+hg rename --force d1/ba d1/ca
+hg status
+hg update -C