Mercurial > hg
comparison tests/test-http.t @ 32259:076f1ff43f0f
clone: warn when streaming was requested but couldn't be performed
This helps both users and the people who support them figure out why
a stream clone couldn't be performed.
In an upcoming patch we're going to add a way for servers to hard
abort on a full getbundle. In those cases servers might expect
clients to perform a stream clone, so it's important to communicate
why one couldn't be done.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Mon, 08 May 2017 20:01:06 -0700 |
parents | 9c60d93fd3ab |
children | d0d9a4fca59b |
comparison
equal
deleted
inserted
replaced
32258:9c60d93fd3ab | 32259:076f1ff43f0f |
---|---|
47 4 files, 1 changesets, 4 total revisions | 47 4 files, 1 changesets, 4 total revisions |
48 | 48 |
49 try to clone via stream, should use pull instead | 49 try to clone via stream, should use pull instead |
50 | 50 |
51 $ hg clone --uncompressed http://localhost:$HGPORT1/ copy2 | 51 $ hg clone --uncompressed http://localhost:$HGPORT1/ copy2 |
52 warning: stream clone requested but server has them disabled | |
52 requesting all changes | 53 requesting all changes |
53 adding changesets | 54 adding changesets |
54 adding manifests | 55 adding manifests |
55 adding file changes | 56 adding file changes |
56 added 1 changesets with 4 changes to 4 files | 57 added 1 changesets with 4 changes to 4 files |
64 > def extsetup(ui): | 65 > def extsetup(ui): |
65 > localrepo.localrepository.supportedformats.remove('generaldelta') | 66 > localrepo.localrepository.supportedformats.remove('generaldelta') |
66 > EOF | 67 > EOF |
67 | 68 |
68 $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --uncompressed http://localhost:$HGPORT/ copy3 | 69 $ hg clone --config extensions.rsf=$TESTTMP/removesupportedformat.py --uncompressed http://localhost:$HGPORT/ copy3 |
70 warning: stream clone requested but client is missing requirements: generaldelta | |
71 (see https://www.mercurial-scm.org/wiki/MissingRequirement for more information) | |
69 requesting all changes | 72 requesting all changes |
70 adding changesets | 73 adding changesets |
71 adding manifests | 74 adding manifests |
72 adding file changes | 75 adding file changes |
73 added 1 changesets with 4 changes to 4 files | 76 added 1 changesets with 4 changes to 4 files |