changeset 5406:f11554a097c8

test-manifest: test symlink and exec bit display
author Patrick Mezard <pmezard@gmail.com>
date Sat, 06 Oct 2007 22:30:24 +0200
parents 8feb33c2d153
children d7e7902bb190
files tests/test-manifest tests/test-manifest.hg tests/test-manifest.out
diffstat 3 files changed, 22 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-manifest	Sat Oct 06 22:30:22 2007 +0200
+++ b/tests/test-manifest	Sat Oct 06 22:30:24 2007 +0200
@@ -1,11 +1,19 @@
 #!/bin/sh
 
+# Source bundle was generated with the following script.
+#
+# hg init
+# echo a > a
+# ln -s a l
+# hg ci -Ama -d'0 0'
+# mkdir b
+# echo a > b/a
+# chmod +x b/a
+# hg ci -Amb -d'1 0'
+
 hg init
-echo a > a
-hg ci -Ama -d'0 0'
-mkdir b
-echo a > b/a
-hg ci -Amb -d'1 0'
+hg -q pull "$TESTDIR/test-manifest.hg"
+
 hg manifest
 hg manifest -v
 hg manifest --debug
Binary file tests/test-manifest.hg has changed
--- a/tests/test-manifest.out	Sat Oct 06 22:30:22 2007 +0200
+++ b/tests/test-manifest.out	Sat Oct 06 22:30:24 2007 +0200
@@ -1,18 +1,23 @@
-adding a
-adding b/a
 a
 b/a
+l
 644   a
-644   b/a
+755 * b/a
+644 @ l
 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644   a
-b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644   b/a
+b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 755 * b/a
+047b75c6d7a3ef6a2243bd0e99f94f6ea6683597 644 @ l
 a
+l
 a
 b/a
+l
 a
 b/a
+l
 % should fail
 abort: unknown revision '2'!
 abort: please specify just one revision
 a
 b/a
+l