tests/test-rename
changeset 1633 94c179a92f4a
parent 1565 4bcbc126b80b
child 1634 f49f602fae92
--- 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