--- a/tests/test-symlink-basic Thu Aug 12 22:58:46 2010 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-#!/bin/sh
-
-"$TESTDIR/hghave" symlink || exit 80
-
-hg init a
-cd a
-ln -s nothing dangling
-hg commit -m 'commit symlink without adding' dangling
-hg add dangling
-hg commit -m 'add symlink'
-
-hg tip -v
-hg manifest --debug
-echo '% rev 0:'
-$TESTDIR/readlink.py dangling
-
-rm dangling
-ln -s void dangling
-hg commit -m 'change symlink'
-echo '% rev 1:'
-$TESTDIR/readlink.py dangling
-
-echo '% modifying link'
-rm dangling
-ln -s empty dangling
-$TESTDIR/readlink.py dangling
-
-echo '% reverting to rev 0:'
-hg revert -r 0 -a
-$TESTDIR/readlink.py dangling
-
-echo '% backups:'
-$TESTDIR/readlink.py *.orig
-
-rm *.orig
-hg up -C
-echo '% copies'
-hg cp -v dangling dangling2
-hg st -Cmard
-$TESTDIR/readlink.py dangling dangling2
-
-echo '% issue995'
-hg up -C
-mkdir dir
-ln -s dir dirlink
-hg ci -qAm 'add dirlink'
-mkdir newdir
-mv dir newdir/dir
-mv dirlink newdir/dirlink
-hg mv -A dirlink newdir/dirlink
--- a/tests/test-symlink-basic.out Thu Aug 12 22:58:46 2010 +0900
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-abort: dangling: file not tracked!
-changeset: 0:cabd88b706fc
-tag: tip
-user: test
-date: Thu Jan 01 00:00:00 1970 +0000
-files: dangling
-description:
-add symlink
-
-
-2564acbe54bbbedfbf608479340b359f04597f80 644 @ dangling
-% rev 0:
-dangling -> nothing
-% rev 1:
-dangling -> void
-% modifying link
-dangling -> empty
-% reverting to rev 0:
-reverting dangling
-dangling -> nothing
-% backups:
-dangling.orig -> empty
-1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-% copies
-copying dangling to dangling2
-A dangling2
- dangling
-dangling -> void
-dangling2 -> void
-% issue995
-0 files updated, 0 files merged, 0 files removed, 0 files unresolved
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-symlink-basic.t Thu Aug 12 23:00:36 2010 +0900
@@ -0,0 +1,79 @@
+ $ "$TESTDIR/hghave" symlink || exit 80
+
+ $ hg init a
+ $ cd a
+ $ ln -s nothing dangling
+ $ hg commit -m 'commit symlink without adding' dangling
+ abort: dangling: file not tracked!
+ $ hg add dangling
+ $ hg commit -m 'add symlink'
+
+ $ hg tip -v
+ changeset: 0:cabd88b706fc
+ tag: tip
+ user: test
+ date: Thu Jan 01 00:00:00 1970 +0000
+ files: dangling
+ description:
+ add symlink
+
+
+ $ hg manifest --debug
+ 2564acbe54bbbedfbf608479340b359f04597f80 644 @ dangling
+ $ $TESTDIR/readlink.py dangling
+ dangling -> nothing
+
+ $ rm dangling
+ $ ln -s void dangling
+ $ hg commit -m 'change symlink'
+ $ $TESTDIR/readlink.py dangling
+ dangling -> void
+
+
+modifying link
+
+ $ rm dangling
+ $ ln -s empty dangling
+ $ $TESTDIR/readlink.py dangling
+ dangling -> empty
+
+
+reverting to rev 0:
+
+ $ hg revert -r 0 -a
+ reverting dangling
+ $ $TESTDIR/readlink.py dangling
+ dangling -> nothing
+
+
+backups:
+
+ $ $TESTDIR/readlink.py *.orig
+ dangling.orig -> empty
+ $ rm *.orig
+ $ hg up -C
+ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+
+copies
+
+ $ hg cp -v dangling dangling2
+ copying dangling to dangling2
+ $ hg st -Cmard
+ A dangling2
+ dangling
+ $ $TESTDIR/readlink.py dangling dangling2
+ dangling -> void
+ dangling2 -> void
+
+
+issue995
+
+ $ hg up -C
+ 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ $ mkdir dir
+ $ ln -s dir dirlink
+ $ hg ci -qAm 'add dirlink'
+ $ mkdir newdir
+ $ mv dir newdir/dir
+ $ mv dirlink newdir/dirlink
+ $ hg mv -A dirlink newdir/dirlink