comparison tests/test-copies-chain-merge.t @ 47088:573d817bcc1f

test-copies: test that copies' sidedata does not get corrupted during pull This is an important usecase. Differential Revision: https://phab.mercurial-scm.org/D10347
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 19 Apr 2021 11:22:24 +0200
parents 4b1bce1aa9bb
children fa5bc416b413
comparison
equal deleted inserted replaced
47087:4b1bce1aa9bb 47088:573d817bcc1f
1 #testcases filelog compatibility changeset sidedata upgraded upgraded-parallel 1 #testcases filelog compatibility changeset sidedata upgraded upgraded-parallel pull
2 2
3 ===================================================== 3 =====================================================
4 Test Copy tracing for chain of copies involving merge 4 Test Copy tracing for chain of copies involving merge
5 ===================================================== 5 =====================================================
6 6
48 > copies.write-to = changeset-only 48 > copies.write-to = changeset-only
49 > EOF 49 > EOF
50 #endif 50 #endif
51 51
52 #if sidedata 52 #if sidedata
53 $ cat >> $HGRCPATH << EOF
54 > [format]
55 > exp-use-side-data = yes
56 > exp-use-copies-side-data-changeset = yes
57 > EOF
58 #endif
59
60 #if pull
53 $ cat >> $HGRCPATH << EOF 61 $ cat >> $HGRCPATH << EOF
54 > [format] 62 > [format]
55 > exp-use-side-data = yes 63 > exp-use-side-data = yes
56 > exp-use-copies-side-data-changeset = yes 64 > exp-use-copies-side-data-changeset = yes
57 > EOF 65 > EOF
1688 - changelog 1696 - changelog
1689 - manifest 1697 - manifest
1690 1698
1691 #endif 1699 #endif
1692 1700
1701 #if pull
1702 $ cd ..
1703 $ mv repo-chain repo-source
1704 $ hg init repo-chain
1705 $ cd repo-chain
1706 $ hg pull ../repo-source
1707 pulling from ../repo-source
1708 requesting all changes
1709 adding changesets
1710 adding manifests
1711 adding file changes
1712 added 80 changesets with 44 changes to 25 files (+39 heads)
1713 new changesets a3a31bbefea6:908ce9259ffa
1714 (run 'hg heads' to see heads, 'hg merge' to merge)
1715 #endif
1693 1716
1694 #if no-compatibility no-filelog no-changeset 1717 #if no-compatibility no-filelog no-changeset
1695 1718
1696 $ hg debugchangedfiles --compute 0 1719 $ hg debugchangedfiles --compute 0
1697 added : a, ; 1720 added : a, ;