# HG changeset patch # User Mads Kiilerich # Date 2016-03-24 23:01:07 # Node ID 8c94594adbefa699d00be0068c883f3e13e0eb65 # Parent 8d398155bfda3a98e664af74096f0e405cc7dd09 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. diff --git a/tests/test-convert-hg-startrev.t b/tests/test-convert-hg-startrev.t --- a/tests/test-convert-hg-startrev.t +++ b/tests/test-convert-hg-startrev.t @@ -221,3 +221,25 @@ Convert from specified revs |/ 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 +