diff tests/test-evolve.t @ 901:4f84b3307dc2 stable

Fix preservation of rename information on evolve (#33) Following what rebase itself does, call duplicatecopies between rebasenode and concludenode. Should fix https://bitbucket.org/marmoute/mutable-history/issue/33/evolve-command-loses-copy-metadata
author Julien Cristau <julien.cristau@logilab.fr>
date Mon, 14 Apr 2014 18:16:35 +0200
parents 760d01a549a6
children c17ab719da56 1ebe5c51919b
line wrap: on
line diff
--- a/tests/test-evolve.t	Fri Apr 04 01:07:27 2014 +0200
+++ b/tests/test-evolve.t	Mon Apr 14 18:16:35 2014 +0200
@@ -645,3 +645,28 @@
   4	: add 4 - test
   5	: add 3 - test
   11	: add 1 - test
+
+
+Test evolving renames
+
+  $ hg up null
+  0 files updated, 0 files merged, 4 files removed, 0 files unresolved
+  $ echo a > a
+  $ hg ci -Am a
+  adding a
+  created new head
+  $ echo b > b
+  $ hg ci -Am b
+  adding b
+  $ hg mv a c
+  $ hg ci -m c
+  $ hg kill .^
+  1 changesets pruned
+  1 new unstable changesets
+  $ hg stab --any
+  move:[15] c
+  atop:[13] a
+  $ hg st -C --change=tip
+  A c
+    a
+  R a