tests/test-import-git.t
branchstable
changeset 16506 fc4e0fecf403
parent 16112 d7829b2ecf32
child 16522 a8065323c003
--- a/tests/test-import-git.t	Sat Apr 21 10:23:47 2012 +0200
+++ b/tests/test-import-git.t	Sat Apr 21 21:40:25 2012 +0200
@@ -483,4 +483,28 @@
   ? b.rej
   ? linkb.rej
 
+Test corner case involving copies and multiple hunks (issue3384)
+
+  $ hg revert -qa
+  $ hg import --no-commit - <<EOF
+  > diff --git a/a b/c
+  > copy from a
+  > copy to c
+  > --- a/a
+  > +++ b/c
+  > @@ -1,1 +1,2 @@
+  >  a
+  > +a
+  > @@ -2,1 +2,2 @@
+  >  a
+  > +a
+  > diff --git a/a b/a
+  > --- a/a
+  > +++ b/a
+  > @@ -1,1 +1,2 @@
+  >  a
+  > +b
+  > EOF
+  applying patch from stdin
+
   $ cd ..