diff --git a/tests/test-http-bundle1.t b/tests/test-http-bundle1.t index 205bd393617968cccbac1dc430acec18850e0bbd_dGVzdHMvdGVzdC1odHRwLWJ1bmRsZTEudA==..9c60d93fd3abe711accf0e2b698797513aa21f1b_dGVzdHMvdGVzdC1odHRwLWJ1bmRsZTEudA== 100644 --- a/tests/test-http-bundle1.t +++ b/tests/test-http-bundle1.t @@ -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 diff --git a/tests/test-http.t b/tests/test-http.t index 205bd393617968cccbac1dc430acec18850e0bbd_dGVzdHMvdGVzdC1odHRwLnQ=..9c60d93fd3abe711accf0e2b698797513aa21f1b_dGVzdHMvdGVzdC1odHRwLnQ= 100644 --- a/tests/test-http.t +++ b/tests/test-http.t @@ -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