comparison tests/test-branches.t @ 37336:5d10f41ddcc4

tests: use `hg unbundle` instead of `hg pull` in some tests `hg pull <bundle>` uses the special "bundlerepo" repository. The bundlerepo code makes many assumptions about the storage of repositories. It will be difficult to teach bundlerepo to use non-revlog storage before a better storage interface is established. Many test failures using our "simple store" are related to bundlerepo: the simple store just isn't compatible with bundlerepo because of storage assumptions in bundlerepo. In order to mitigate the impact of bundlerepo on our code base, this commit changes various tests to use `hg unbundle` instead of `hg pull`. This bypasses the bundlerepo code. Tests exercising exchange functionality have not been altered, as they should be using `hg pull` and going through the bundlerepo code paths. Differential Revision: https://phab.mercurial-scm.org/D3059
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 03 Apr 2018 13:56:09 -0700
parents eb586ed5d8ce
children 89630d0b3e23
comparison
equal deleted inserted replaced
37335:956260cbc564 37336:5d10f41ddcc4
84 84
85 verify update will accept invalid legacy branch names 85 verify update will accept invalid legacy branch names
86 86
87 $ hg init test-invalid-branch-name 87 $ hg init test-invalid-branch-name
88 $ cd test-invalid-branch-name 88 $ cd test-invalid-branch-name
89 $ hg pull -u "$TESTDIR"/bundles/test-invalid-branch-name.hg 89 $ hg unbundle -u "$TESTDIR"/bundles/test-invalid-branch-name.hg
90 pulling from *test-invalid-branch-name.hg (glob)
91 requesting all changes
92 adding changesets 90 adding changesets
93 adding manifests 91 adding manifests
94 adding file changes 92 adding file changes
95 added 3 changesets with 3 changes to 2 files 93 added 3 changesets with 3 changes to 2 files
96 new changesets f0e4c7f04036:33c2ceb9310b 94 new changesets f0e4c7f04036:33c2ceb9310b