Patchwork [01,of,14] stream: add a test showing we also clone bookmarks

login
register
mail settings
Submitter Boris Feld
Date Jan. 18, 2018, 11:21 a.m.
Message ID <939c242897c47ede8cda.1516274487@FB>
Download mbox | patch
Permalink /patch/26846/
State Superseded
Headers show

Comments

Boris Feld - Jan. 18, 2018, 11:21 a.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1516201266 -3600
#      Wed Jan 17 16:01:06 2018 +0100
# Node ID 939c242897c47ede8cda0b0a0149e15b74803402
# Parent  9c575c22dcf4305db2160dc45350ba8e40cf5e60
# EXP-Topic b2-stream
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 939c242897c4
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`.

Patch

diff --git a/tests/test-clone-uncompressed.t b/tests/test-clone-uncompressed.t
--- a/tests/test-clone-uncompressed.t
+++ b/tests/test-clone-uncompressed.t
@@ -171,3 +171,28 @@  actually serving file content
   $ 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