Mercurial > public > mercurial-scm > hg-stable
diff tests/test-convert-hg-startrev.t @ 28900:b65966f50058
convert: keep converted hg parents that are outside convert.hg.revs (BC)
Before, when converting revisions without also including their already
converted parents in convert.hg.revs, the parents would no longer be parents.
That seems unfortunate and we dare to assume that nobody ever wants that.
Instead, preserve parents that are outside the current convert range but
already have been converted.
The parents returned in getcommit() are unconditionally converted, so we
introduce a separate optparents with optional parents.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 13 Apr 2016 00:16:21 +0200 |
parents | 8c94594adbef |
children | 99ebde4fec99 |
line wrap: on
line diff
--- a/tests/test-convert-hg-startrev.t Thu Mar 24 16:01:07 2016 -0700 +++ b/tests/test-convert-hg-startrev.t Wed Apr 13 00:16:21 2016 +0200 @@ -222,7 +222,7 @@ 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 +preserved anyway $ hg convert --config convert.hg.revs=::1 source multistep initializing destination multistep repository @@ -237,8 +237,8 @@ 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 2 "2: copy e from a, change b" files: b 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