diff -r 3f214984fd9e -r 94c179a92f4a tests/test-rename --- 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