Mercurial > hg > mercurial-crew
changeset 11809:97b391bb6379
tests: unify test-symlink-addremove
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Thu, 12 Aug 2010 22:58:46 +0900 |
parents | 3f6cf4cb3dca |
children | 8c01fc10cb67 |
files | tests/test-symlink-addremove tests/test-symlink-addremove.out tests/test-symlink-addremove.t |
diffstat | 2 files changed, 17 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
deleted file mode 100644 --- a/tests/test-symlink-addremove.out +++ /dev/null @@ -1,6 +0,0 @@ -% directory moved and symlinked -adding foo/a -% now addremove should remove old files -adding bar/a -adding foo -removing foo/a
old mode 100755 new mode 100644 rename from tests/test-symlink-addremove rename to tests/test-symlink-addremove.t --- a/tests/test-symlink-addremove +++ b/tests/test-symlink-addremove.t @@ -1,15 +1,20 @@ -#!/bin/sh + $ "$TESTDIR/hghave" symlink || exit 80 -"$TESTDIR/hghave" symlink || exit 80 + $ hg init a + $ cd a -hg init a -cd a +directory moved and symlinked -echo '% directory moved and symlinked' -mkdir foo -touch foo/a -hg ci -Ama -mv foo bar -ln -s bar foo -echo '% now addremove should remove old files' -hg addremove + $ mkdir foo + $ touch foo/a + $ hg ci -Ama + adding foo/a + $ mv foo bar + $ ln -s bar foo + +now addremove should remove old files + + $ hg addremove + adding bar/a + adding foo + removing foo/a