[PATCH] copy/rename a directory
This patch adds support for 'hg copy dir1 dir2' or 'hg rename dir1 dir2'.
When "dir2" exists, "dir1" is recursively copied (or moved) to "dir2/dir1".
When "dir2" does not exists, "dir1" is copied to (renamed as) "dir2".
#!/bin/sh
mkdir a
cd a
hg init
echo foo > b
hg add b
hg ci -m "b" -d "0 0"
chmod -w .hg
cd ..
hg clone a b
cd b
hg verify
cd ..
chmod +w a/.hg # let test clean up