diff tests/test-issue1438.t @ 12204:c55d69c5fb77

tests: unify test-issue1438 and test-issue2137
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 10 Sep 2010 17:59:17 +0200
parents tests/test-issue1438@2c5b2abfb8be
children b63f6422d2a7
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-issue1438.t	Fri Sep 10 17:59:17 2010 +0200
@@ -0,0 +1,23 @@
+# http://mercurial.selenic.com/bts/issue1438
+
+  $ "$TESTDIR/hghave" symlink || exit 80
+
+  $ hg init
+
+  $ ln -s foo link
+  $ hg add link
+  $ hg ci -mbad link
+  $ hg rm link
+  $ hg ci -mok
+  $ hg diff -g -r 0:1 > bad.patch
+
+  $ hg up 0
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+
+  $ hg import --no-commit bad.patch
+  applying bad.patch
+
+  $ hg status
+  R link
+  ? bad.patch
+