tests/test-import.t
changeset 30078 173bdb502503
parent 29900 50f2966f86ca
child 30332 318a24b52eeb
--- a/tests/test-import.t	Sat Oct 08 08:54:05 2016 -0700
+++ b/tests/test-import.t	Sat Oct 08 05:26:58 2016 -0700
@@ -1793,3 +1793,13 @@
   1 out of 1 hunks FAILED -- saving rejects to file file1.rej
   abort: patch failed to apply
   [255]
+
+test import crash (issue5375)
+  $ cd ..
+  $ hg init repo
+  $ cd repo
+  $ printf "diff --git a/a b/b\nrename from a\nrename to b" | hg import -
+  applying patch from stdin
+  a not tracked!
+  abort: source file 'a' does not exist
+  [255]