tests/test-rename-merge1.t
branchstable
changeset 13468 d100702326d5
parent 12757 62c8f7691bc3
child 13492 ca940d06bf95
--- a/tests/test-rename-merge1.t	Wed Feb 23 13:21:55 2011 +0500
+++ b/tests/test-rename-merge1.t	Wed Feb 23 17:27:05 2011 -0600
@@ -99,3 +99,29 @@
    b3
    b4
   2 files updated, 0 files merged, 1 files removed, 0 files unresolved
+
+Check for issue2642
+
+  $ hg init t
+  $ cd t
+
+  $ echo c0 > f1
+  $ hg ci -Aqm0
+
+  $ hg up null -q
+  $ echo c1 > f1 # backport
+  $ hg ci -Aqm1
+  $ hg mv f1 f2
+  $ hg ci -qm2
+
+  $ hg up 0 -q
+  $ hg merge 1 -q --tool internal:local
+  $ hg ci -qm3
+
+  $ hg merge 2
+  merging f1 and f2 to f2
+  0 files updated, 1 files merged, 0 files removed, 0 files unresolved
+  (branch merge, don't forget to commit)
+
+  $ cat f2
+  c0