changeset 28899:8c94594adbef

tests: coverage of ancestry with convert in multiple non-overlapping steps This exposes that parent information is lost in cases where it is possible to preserve it - and where it thus would make sense if that was what happened.
author Mads Kiilerich <madski@unity3d.com>
date Thu, 24 Mar 2016 16:01:07 -0700
parents 8d398155bfda
children b65966f50058
files tests/test-convert-hg-startrev.t
diffstat 1 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-convert-hg-startrev.t	Mon Feb 29 22:58:15 2016 +0900
+++ b/tests/test-convert-hg-startrev.t	Thu Mar 24 16:01:07 2016 -0700
@@ -221,3 +221,25 @@
   |/
   o  0 "0: add a b f" files: a b f
   
+Convert in multiple steps that doesn't overlap - the link to the parent is
+currently missing
+
+  $ hg convert --config convert.hg.revs=::1 source multistep
+  initializing destination multistep repository
+  scanning source...
+  sorting...
+  converting...
+  1 0: add a b f
+  0 1: add c, move f to d
+  $ hg convert --config convert.hg.revs=2 source multistep
+  scanning source...
+  sorting...
+  converting...
+  0 2: copy e from a, change b
+  $ glog multistep
+  o  2 "2: copy e from a, change b" files: a b c d e
+  
+  o  1 "1: add c, move f to d" files: c d f
+  |
+  o  0 "0: add a b f" files: a b f
+