stream: add a test showing we also clone bookmarks
authorBoris Feld <boris.feld@octobus.net>
Wed, 17 Jan 2018 16:01:06 +0100
changeset 41633 de32acb24949c0e3633de373d1c6c8c814faa804
parent 41632 e5b6ba786d83a3c10a0106b93631df4da4d06465
child 41634 963a611b2f396d507b5784c0ec1905e134b0c898
push id653
push usergszorc@mozilla.com
push dateSun, 21 Jan 2018 00:53:23 +0000
stream: add a test showing we also clone bookmarks Bookmarks are not stored in `.hg/store`. We need to make sure they are cloned with `--stream`.
tests/test-clone-uncompressed.t
--- a/tests/test-clone-uncompressed.t
+++ b/tests/test-clone-uncompressed.t
@@ -166,8 +166,33 @@ actually serving file content
   $ hg clone -q --stream -U http://localhost:$HGPORT1 clone &
   $ sleep 1
   $ echo >> repo/f1
   $ echo >> repo/f2
   $ hg -R repo ci -m "1"
   $ wait
   $ hg -R clone id
   000000000000
+  $ cd ..
+
+Stream repository with bookmarks
+--------------------------------
+
+(revert introduction of secret changeset)
+
+  $ hg -R server phase --draft 'secret()'
+
+add a bookmark
+
+  $ hg -R server bookmark -r tip some-bookmark
+
+clone it
+
+  $ hg clone --stream http://localhost:$HGPORT with-bookmarks
+  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
+  $ hg -R with-bookmarks bookmarks
+     some-bookmark             1:c17445101a72