Commits

Markus Zapke-Gründemann committed 9c11821

Added a test with a symlink which has a broken target.

Comments (0)

Files changed (1)

test-importfs-symlinks.t

   f5@
   $ ls -1F r1/d3
   f5@
+
+Remove the symlink's target:
+
+  $ rm -rf d1/d2
+
+Perform another import:
+
+  $ hg importfs r2 d1
+  created repository $TESTTMP/r2
+  0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  adding d3/f5
+  adding d4
+  adding f1
+  adding f2
+
+The symlink has been imported even with the target missing:
+
+  $ ls -1F r2
+  d3/
+  d4@
+  f1
+  f2
+
+  $ ls -la r2/d4/
+  ls: r2/d4/: No such file or directory
+  [2]