tests/test-pull-permission
author Robin Farine <robin.farine@terminus.org>
Wed, 26 Oct 2005 16:24:10 -0700
changeset 1455 407bd229f003
parent 1244 937ee88da3ef
child 1750 955a7caf005c
permissions -rwxr-xr-x
[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