Mercurial > hg-stable
diff tests/test-strip.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 | db06c4bb2158 |
children | cbc4425e81b5 |
line wrap: on
line diff
--- a/tests/test-strip.t Wed Apr 04 09:41:18 2018 -0700 +++ b/tests/test-strip.t Tue Apr 03 13:56:09 2018 -0700 @@ -215,13 +215,11 @@ cache:rev-branch-cache -- {} phase-heads -- {} 264128213d290d868c54642d13aeaa3675551a78 draft - $ hg pull .hg/strip-backup/* - pulling from .hg/strip-backup/264128213d29-0b39d6bf-backup.hg - searching for changes + $ hg unbundle .hg/strip-backup/* adding changesets adding manifests adding file changes - added 1 changesets with 0 changes to 0 files (+1 heads) + added 1 changesets with 0 changes to 1 files (+1 heads) new changesets 264128213d29 (run 'hg heads' to see heads, 'hg merge' to merge) $ rm .hg/strip-backup/* @@ -1107,9 +1105,7 @@ summary: commitA - $ hg pull -u $TESTTMP/issue4736/.hg/strip-backup/35358f982181-a6f020aa-backup.hg - pulling from $TESTTMP/issue4736/.hg/strip-backup/35358f982181-a6f020aa-backup.hg - searching for changes + $ hg unbundle -u $TESTTMP/issue4736/.hg/strip-backup/35358f982181-a6f020aa-backup.hg adding changesets adding manifests adding file changes