Mercurial > public > mercurial-scm > hg
diff tests/test-clonebundles.t @ 26691:23c0da28c034
clonebundles: advertise clone bundles feature to clients
Server operators that have enabled clone bundles probably want clients
to use it. This patch introduces a feature that will insert a bundle2
"output" part that advertises the existence of the clone bundles
feature to clients that aren't using it.
The server uses the "cbattempted" argument to "getbundle" to determine
whether a client supports clone bundles and to avoid sending the message
to clients that failed the clone bundle for whatever reason.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 14 Oct 2015 11:05:53 -0700 |
parents | 7394536338bb |
children | 69ac9aebbc55 |
line wrap: on
line diff
--- a/tests/test-clonebundles.t Wed Oct 14 10:36:20 2015 -0700 +++ b/tests/test-clonebundles.t Wed Oct 14 11:05:53 2015 -0700 @@ -64,6 +64,17 @@ adding file changes added 2 changesets with 2 changes to 2 files +Server advertises presence of feature to client requesting full clone + + $ hg --config experimental.clonebundles=false clone -U http://localhost:$HGPORT advertise-on-clone + requesting all changes + remote: this server supports the experimental "clone bundles" feature that should enable faster and more reliable cloning + remote: help test it by setting the "experimental.clonebundles" config flag to "true" + adding changesets + adding manifests + adding file changes + added 2 changesets with 2 changes to 2 files + Manifest file with invalid URL aborts $ echo 'http://does.not.exist/bundle.hg' > server/.hg/clonebundles.manifest