tests/test-revert
author Robin Farine <robin.farine@terminus.org>
Wed, 26 Oct 2005 16:24:10 -0700
changeset 1455 407bd229f003
parent 1449 30146be3437c
child 1487 2bc6cd62a29c
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

hg init
echo 123 > a
echo 123 > c
hg add a c
hg commit -m "first" -d "0 0" a c
echo 123 > b
hg status
echo 12 > c
hg status
hg add b
hg status
hg rm a
hg status
hg revert a
hg status
hg revert b
hg status
hg revert c
hg status
ls

true