streamclone: add a comment about non-publishing being broken with v1 stable
authorBoris Feld <boris.feld@octobus.net>
Fri, 26 Jan 2018 16:01:42 +0100
branchstable
changeset 41715 784ac51f8bab7709641968f7efd160b60b8534f3
parent 41714 2d3e486d09d02b81f4fe094a8078e678b581bdc0
child 41716 ab239e3de23bf4d8be614ee5852bf167b4cbcc18
push id657
push usergszorc@mozilla.com
push dateTue, 30 Jan 2018 00:33:06 +0000
streamclone: add a comment about non-publishing being broken with v1 This change was suggested by Gregory Szorc.
tests/test-clone-uncompressed.t
--- a/tests/test-clone-uncompressed.t
+++ b/tests/test-clone-uncompressed.t
@@ -474,16 +474,20 @@ Clone as non publishing
   > [phases]
   > publish = False
   > EOF
   $ killdaemons.py
   $ hg -R server serve -p $HGPORT -d --pid-file=hg.pid
   $ cat hg.pid > $DAEMON_PIDS
 
 #if stream-legacy
+
+With v1 of the stream protocol, changeset are always cloned as public. It make
+stream v1 unsuitable for non-publishing repository.
+
   $ hg clone --stream http://localhost:$HGPORT phase-no-publish
   streaming all changes
   1027 files to transfer, 96.3 KB of data
   transferred 96.3 KB in * seconds (*) (glob)
   searching for changes
   no changes found
   updating to branch default
   1025 files updated, 0 files merged, 0 files removed, 0 files unresolved