clone-bundles: reorder some test section and add titles
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jun 2023 11:28:45 +0200
changeset 50700 f4e8c82e2cef
parent 50699 2aaabd8f4471
child 50701 4238e6b22fc4
clone-bundles: reorder some test section and add titles This make things clearer around the inline clone bundle tests.
tests/test-clonebundles.t
--- a/tests/test-clonebundles.t	Mon Jun 19 11:04:27 2023 +0200
+++ b/tests/test-clonebundles.t	Mon Jun 19 11:28:45 2023 +0200
@@ -233,7 +233,14 @@
   no changes found
   2 local changesets published
 
+Inline bundle
+=============
+
+Checking bundle retrieved over the wireprotocol
+
 Feature works over SSH with inline bundle
+-----------------------------------------
+
   $ mkdir server/.hg/bundle-cache/
   $ cp full.hg server/.hg/bundle-cache/
   $ echo "peer-bundle-cache://full.hg" > server/.hg/clonebundles.manifest
@@ -248,7 +255,26 @@
   no changes found
   2 local changesets published
 
+HTTP Supports
+-------------
+
+Or lack of it actually
+
+Feature does not use inline bundle over HTTP(S) because there is no protocaps support
+(so no way for the client to announce that it supports inline clonebundles)
+  $ hg clone -U http://localhost:$HGPORT http-inline-clone
+  requesting all changes
+  adding changesets
+  adding manifests
+  adding file changes
+  added 2 changesets with 2 changes to 2 files
+  new changesets 53245c60e682:aaff8d2ffbbf
+
+Pre-transmit Hook
+-----------------
+
 Hooks work with inline bundle
+
   $ cp server/.hg/hgrc server/.hg/hgrc-beforeinlinehooks
   $ echo "[hooks]" >> server/.hg/hgrc
   $ echo "pretransmit-inline-clone-bundle=echo foo" >> server/.hg/hgrc
@@ -265,6 +291,7 @@
   2 local changesets published
 
 Hooks can make an inline bundle fail
+
   $ cp server/.hg/hgrc-beforeinlinehooks server/.hg/hgrc
   $ echo "[hooks]" >> server/.hg/hgrc
   $ echo "pretransmit-inline-clone-bundle=echo bar && false" >> server/.hg/hgrc
@@ -276,15 +303,8 @@
   [255]
   $ cp server/.hg/hgrc-beforeinlinehooks server/.hg/hgrc
 
-Feature does not use inline bundle over HTTP(S) because there is no protocaps support
-(so no way for the client to announce that it supports inline clonebundles)
-  $ hg clone -U http://localhost:$HGPORT http-inline-clone
-  requesting all changes
-  adding changesets
-  adding manifests
-  adding file changes
-  added 2 changesets with 2 changes to 2 files
-  new changesets 53245c60e682:aaff8d2ffbbf
+Other tests
+===========
 
 Entry with unknown BUNDLESPEC is filtered and not used