Mercurial > hg
comparison tests/test-copies-chain-merge.t @ 47091:bc7bdca15e47
test-copies: test that copies' sidedata can get computed during push
If the source of the push does not have the necessary sidedata but the server
needs them, the client should compute them on the fly while pushing.
Differential Revision: https://phab.mercurial-scm.org/D10350
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 19 Apr 2021 11:22:24 +0200 |
parents | f506adbe5ac1 |
children | bea4717415c0 |
comparison
equal
deleted
inserted
replaced
47090:f506adbe5ac1 | 47091:bc7bdca15e47 |
---|---|
1 #testcases filelog compatibility changeset sidedata upgraded upgraded-parallel pull push pull-upgrade | 1 #testcases filelog compatibility changeset sidedata upgraded upgraded-parallel pull push pull-upgrade push-upgrade |
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 |
71 > exp-use-side-data = yes | 71 > exp-use-side-data = yes |
72 > exp-use-copies-side-data-changeset = yes | 72 > exp-use-copies-side-data-changeset = yes |
73 > EOF | 73 > EOF |
74 #endif | 74 #endif |
75 | 75 |
76 | |
77 #if pull-upgrade | 76 #if pull-upgrade |
77 $ cat >> $HGRCPATH << EOF | |
78 > [format] | |
79 > exp-use-side-data = no | |
80 > exp-use-copies-side-data-changeset = no | |
81 > [experimental] | |
82 > changegroup4 = yes | |
83 > EOF | |
84 #endif | |
85 | |
86 #if push-upgrade | |
78 $ cat >> $HGRCPATH << EOF | 87 $ cat >> $HGRCPATH << EOF |
79 > [format] | 88 > [format] |
80 > exp-use-side-data = no | 89 > exp-use-side-data = no |
81 > exp-use-copies-side-data-changeset = no | 90 > exp-use-copies-side-data-changeset = no |
82 > [experimental] | 91 > [experimental] |
1768 adding file changes | 1777 adding file changes |
1769 added 80 changesets with 44 changes to 25 files (+39 heads) | 1778 added 80 changesets with 44 changes to 25 files (+39 heads) |
1770 $ cd ../repo-chain | 1779 $ cd ../repo-chain |
1771 #endif | 1780 #endif |
1772 | 1781 |
1782 #if push-upgrade | |
1783 $ cat >> $HGRCPATH << EOF | |
1784 > [format] | |
1785 > exp-use-side-data = yes | |
1786 > exp-use-copies-side-data-changeset = yes | |
1787 > [experimental] | |
1788 > changegroup4 = yes | |
1789 > EOF | |
1790 $ cd .. | |
1791 $ mv repo-chain repo-source | |
1792 $ hg init repo-chain | |
1793 $ cd repo-source | |
1794 $ hg push ../repo-chain | |
1795 pushing to ../repo-chain | |
1796 searching for changes | |
1797 adding changesets | |
1798 adding manifests | |
1799 adding file changes | |
1800 added 80 changesets with 44 changes to 25 files (+39 heads) | |
1801 $ cd ../repo-chain | |
1802 #endif | |
1803 | |
1773 #if no-compatibility no-filelog no-changeset | 1804 #if no-compatibility no-filelog no-changeset |
1774 | 1805 |
1775 $ hg debugchangedfiles --compute 0 | 1806 $ hg debugchangedfiles --compute 0 |
1776 added : a, ; | 1807 added : a, ; |
1777 added : b, ; | 1808 added : b, ; |