diff --git a/tests/test-convert-hg-source.t b/tests/test-convert-hg-source.t --- a/tests/test-convert-hg-source.t +++ b/tests/test-convert-hg-source.t @@ -206,3 +206,22 @@ a c d + $ cd .. + + $ hg init commit-references + $ cd commit-references +Create a commit we'll drop while converting so we get different hashes + $ echo a > unwanted + $ hg ci -Aqm 'unwanted' + $ echo a > a + $ hg ci -Aqm initial + $ echo b > b + $ hg ci -Aqm 'the previous commit was 3ccbd4cbba95' + + $ cd .. + $ hg convert commit-references new-commit-references -q \ + > --config convert.hg.startrev=1 + $ cd new-commit-references + $ hg log -T '{node|short} {desc}\n' + 38a97fe212e7 the previous commit was 3cf70f7c1f3b + 3cf70f7c1f3b initial