Mercurial > hg
changeset 32258:9c60d93fd3ab
clone: test streaming disabled because client is missing requirement
Turns out we had no coverage for this important case.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Mon, 08 May 2017 18:47:24 -0700 |
parents | 205bd3936179 |
children | 076f1ff43f0f |
files | tests/test-http-bundle1.t tests/test-http.t |
diffstat | 2 files changed, 34 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-http-bundle1.t Mon May 08 17:30:51 2017 -0700 +++ b/tests/test-http-bundle1.t Mon May 08 18:47:24 2017 -0700 @@ -66,6 +66,23 @@ updating to branch default 4 files updated, 0 files merged, 0 files removed, 0 files unresolved +try to clone via stream but missing requirements, so should use pull instead + + $ cat > $TESTTMP/removesupportedformat.py << EOF + > from mercurial import localrepo + > def extsetup(ui): + > localrepo.localrepository.supportedformats.remove('generaldelta') + > EOF + + $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --uncompressed http://localhost:$HGPORT/ copy3 + requesting all changes + adding changesets + adding manifests + adding file changes + added 1 changesets with 4 changes to 4 files + updating to branch default + 4 files updated, 0 files merged, 0 files removed, 0 files unresolved + clone via pull $ hg clone http://localhost:$HGPORT1/ copy-pull
--- a/tests/test-http.t Mon May 08 17:30:51 2017 -0700 +++ b/tests/test-http.t Mon May 08 18:47:24 2017 -0700 @@ -57,6 +57,23 @@ updating to branch default 4 files updated, 0 files merged, 0 files removed, 0 files unresolved +try to clone via stream but missing requirements, so should use pull instead + + $ cat > $TESTTMP/removesupportedformat.py << EOF + > from mercurial import localrepo + > def extsetup(ui): + > localrepo.localrepository.supportedformats.remove('generaldelta') + > EOF + + $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --uncompressed http://localhost:$HGPORT/ copy3 + requesting all changes + adding changesets + adding manifests + adding file changes + added 1 changesets with 4 changes to 4 files + updating to branch default + 4 files updated, 0 files merged, 0 files removed, 0 files unresolved + clone via pull $ hg clone http://localhost:$HGPORT1/ copy-pull