changeset 35747:de32acb24949

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`.
author Boris Feld <boris.feld@octobus.net>
date Wed, 17 Jan 2018 16:01:06 +0100
parents e5b6ba786d83
children 963a611b2f39
files tests/test-clone-uncompressed.t
diffstat 1 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-clone-uncompressed.t	Fri Jan 19 18:45:20 2018 +0530
+++ b/tests/test-clone-uncompressed.t	Wed Jan 17 16:01:06 2018 +0100
@@ -171,3 +171,28 @@
   $ 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