diff tests/test-rename @ 1633:94c179a92f4a

copy/rename '.' or '..' correctly
author Robin Farine <robin.farine@terminus.org>
date Tue, 24 Jan 2006 13:57:09 +1300
parents 4bcbc126b80b
children f49f602fae92
line wrap: on
line diff
--- a/tests/test-rename	Tue Jan 24 13:50:40 2006 +1300
+++ b/tests/test-rename	Tue Jan 24 13:57:09 2006 +1300
@@ -134,3 +134,21 @@
 hg rename d1/* d2/* d3
 hg status
 hg update -C
+
+echo "# move a whole subtree with \"hg rename .\""
+mkdir d3
+(cd d1; hg rename . ../d3)
+hg status
+hg update -C
+
+echo "# move a whole subtree with \"hg rename --after .\""
+mkdir d3
+mv d1/* d3
+(cd d1; hg rename --after . ../d3)
+hg status
+hg update -C
+
+echo "# move the parent tree with \"hg rename ..\""
+(cd d1/d11; hg rename .. ../../d3)
+hg status
+hg update -C