Mercurial > hg
annotate tests/test-clone-stream-format.t @ 48654:eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Now that the ducks are properly aligned on there shelve, it becomes easy to fix
the list of requirements to consider for stream. We remove the working copy
specific ones and add some missing revlog specific ones.
Differential Revision: https://phab.mercurial-scm.org/D11982
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 14 Jan 2022 18:17:55 +0100 |
parents | a3cf460a6b1b |
children | 4933086bebf5 |
rev | line source |
---|---|
48598
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
1 This file contains tests case that deal with format change accross stream clone |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
2 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
3 #require serve no-reposimplestore no-chg |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
4 |
48653
a3cf460a6b1b
stream-clone: also filter the requirement we put in the bundle 2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48598
diff
changeset
|
5 #testcases stream-legacy stream-bundle2 |
48598
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
6 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
7 #if stream-legacy |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
8 $ cat << EOF >> $HGRCPATH |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
9 > [server] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
10 > bundle2.stream = no |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
11 > EOF |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
12 #endif |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
13 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
14 Initialize repository |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
15 |
48654
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
16 $ hg init server --config format.use-share-safe=yes |
48598
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
17 $ cd server |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
18 $ sh $TESTDIR/testlib/stream_clone_setup.sh |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
19 adding 00changelog-ab349180a0405010.nd |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
20 adding 00changelog.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
21 adding 00changelog.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
22 adding 00changelog.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
23 adding 00manifest.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
24 adding 00manifest.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
25 adding container/isam-build-centos7/bazel-coverage-generator-sandboxfs-compatibility-0758e3e4f6057904d44399bd666faba9e7f40686.patch |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
26 adding data/foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
27 adding data/foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
28 adding data/foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
29 adding data/undo.babar |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
30 adding data/undo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
31 adding data/undo.foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
32 adding data/undo.foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
33 adding data/undo.foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
34 adding data/undo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
35 adding data/undo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
36 adding data/undo.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
37 adding foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
38 adding foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
39 adding foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
40 adding meta/foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
41 adding meta/foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
42 adding meta/foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
43 adding meta/undo.babar |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
44 adding meta/undo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
45 adding meta/undo.foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
46 adding meta/undo.foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
47 adding meta/undo.foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
48 adding meta/undo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
49 adding meta/undo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
50 adding meta/undo.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
51 adding savanah/foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
52 adding savanah/foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
53 adding savanah/foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
54 adding savanah/undo.babar |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
55 adding savanah/undo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
56 adding savanah/undo.foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
57 adding savanah/undo.foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
58 adding savanah/undo.foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
59 adding savanah/undo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
60 adding savanah/undo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
61 adding savanah/undo.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
62 adding store/C\xc3\xa9lesteVille_is_a_Capital_City (esc) |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
63 adding store/foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
64 adding store/foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
65 adding store/foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
66 adding store/undo.babar |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
67 adding store/undo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
68 adding store/undo.foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
69 adding store/undo.foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
70 adding store/undo.foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
71 adding store/undo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
72 adding store/undo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
73 adding store/undo.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
74 adding undo.babar |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
75 adding undo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
76 adding undo.foo.d |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
77 adding undo.foo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
78 adding undo.foo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
79 adding undo.i |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
80 adding undo.n |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
81 adding undo.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
82 $ cd .. |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
83 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
84 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
85 Test streaming from/to repository without a store: |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
86 ================================================== |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
87 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
88 $ hg clone --pull --config format.usestore=no server server-no-store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
89 requesting all changes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
90 adding changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
91 adding manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
92 adding file changes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
93 added 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
94 new changesets 96ee1d7354c4:5223b5e3265f |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
95 updating to branch default |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
96 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
97 $ hg verify -R server-no-store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
98 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
99 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
100 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
101 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
102 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
103 $ hg -R server serve -p $HGPORT -d --pid-file=hg-1.pid --error errors-1.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
104 $ cat hg-1.pid > $DAEMON_PIDS |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
105 $ hg -R server-no-store serve -p $HGPORT2 -d --pid-file=hg-2.pid --error errors-2.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
106 $ cat hg-2.pid >> $DAEMON_PIDS |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
107 $ hg debugrequires -R server | grep store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
108 store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
109 $ hg debugrequires -R server-no-store | grep store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
110 [1] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
111 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
112 store → no-store cloning |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
113 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
114 $ hg clone --quiet --stream -U http://localhost:$HGPORT clone-remove-store --config format.usestore=no |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
115 $ cat errors-1.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
116 $ hg -R clone-remove-store verify |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
117 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
118 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
119 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
120 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
121 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
122 $ hg debugrequires -R clone-remove-store | grep store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
123 [1] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
124 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
125 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
126 no-store → store cloning |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
127 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
128 $ hg clone --quiet --stream -U http://localhost:$HGPORT2 clone-add-store --config format.usestore=yes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
129 $ cat errors-2.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
130 $ hg -R clone-add-store verify |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
131 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
132 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
133 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
134 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
135 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
136 $ hg debugrequires -R clone-add-store | grep store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
137 store |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
138 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
139 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
140 $ killdaemons.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
141 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
142 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
143 Test streaming from/to repository without a fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
144 =================================================== |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
145 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
146 $ rm hg-*.pid errors-*.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
147 $ hg clone --pull --config format.usefncache=no server server-no-fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
148 requesting all changes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
149 adding changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
150 adding manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
151 adding file changes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
152 added 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
153 new changesets 96ee1d7354c4:5223b5e3265f |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
154 updating to branch default |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
155 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
156 $ hg verify -R server-no-fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
157 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
158 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
159 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
160 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
161 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
162 $ hg -R server serve -p $HGPORT -d --pid-file=hg-1.pid --error errors-1.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
163 $ cat hg-1.pid > $DAEMON_PIDS |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
164 $ hg -R server-no-fncache serve -p $HGPORT2 -d --pid-file=hg-2.pid --error errors-2.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
165 $ cat hg-2.pid >> $DAEMON_PIDS |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
166 $ hg debugrequires -R server | grep fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
167 fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
168 $ hg debugrequires -R server-no-fncache | grep fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
169 [1] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
170 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
171 fncache → no-fncache cloning |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
172 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
173 $ hg clone --quiet --stream -U http://localhost:$HGPORT clone-remove-fncache --config format.usefncache=no |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
174 $ cat errors-1.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
175 $ hg -R clone-remove-fncache verify |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
176 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
177 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
178 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
179 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
180 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
181 $ hg debugrequires -R clone-remove-fncache | grep fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
182 [1] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
183 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
184 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
185 no-fncache → fncache cloning |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
186 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
187 $ hg clone --quiet --stream -U http://localhost:$HGPORT2 clone-add-fncache --config format.usefncache=yes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
188 $ cat errors-2.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
189 $ hg -R clone-add-fncache verify |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
190 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
191 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
192 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
193 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
194 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
195 $ hg debugrequires -R clone-add-fncache | grep fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
196 fncache |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
197 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
198 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
199 $ killdaemons.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
200 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
201 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
202 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
203 Test streaming from/to repository without a dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
204 =================================================== |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
205 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
206 $ rm hg-*.pid errors-*.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
207 $ hg clone --pull --config format.dotencode=no server server-no-dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
208 requesting all changes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
209 adding changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
210 adding manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
211 adding file changes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
212 added 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
213 new changesets 96ee1d7354c4:5223b5e3265f |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
214 updating to branch default |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
215 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
216 $ hg verify -R server-no-dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
217 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
218 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
219 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
220 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
221 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
222 $ hg -R server serve -p $HGPORT -d --pid-file=hg-1.pid --error errors-1.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
223 $ cat hg-1.pid > $DAEMON_PIDS |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
224 $ hg -R server-no-dotencode serve -p $HGPORT2 -d --pid-file=hg-2.pid --error errors-2.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
225 $ cat hg-2.pid >> $DAEMON_PIDS |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
226 $ hg debugrequires -R server | grep dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
227 dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
228 $ hg debugrequires -R server-no-dotencode | grep dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
229 [1] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
230 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
231 dotencode → no-dotencode cloning |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
232 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
233 $ hg clone --quiet --stream -U http://localhost:$HGPORT clone-remove-dotencode --config format.dotencode=no |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
234 $ cat errors-1.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
235 $ hg -R clone-remove-dotencode verify |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
236 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
237 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
238 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
239 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
240 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
241 $ hg debugrequires -R clone-remove-dotencode | grep dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
242 [1] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
243 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
244 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
245 no-dotencode → dotencode cloning |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
246 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
247 $ hg clone --quiet --stream -U http://localhost:$HGPORT2 clone-add-dotencode --config format.dotencode=yes |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
248 $ cat errors-2.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
249 $ hg -R clone-add-dotencode verify |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
250 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
251 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
252 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
253 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
254 checked 3 changesets with 1088 changes to 1088 files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
255 $ hg debugrequires -R clone-add-dotencode | grep dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
256 dotencode |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
257 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
258 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
259 $ killdaemons.py |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
260 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
261 Cloning from a share |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
262 -------------------- |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
263 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
264 We should be able to clone from a "share" repository, it will use the source store for streaming. |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
265 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
266 The resulting clone should not use share. |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
267 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
268 $ rm hg-*.pid errors-*.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
269 $ hg share --config extensions.share= server server-share -U |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
270 $ hg -R server-share serve -p $HGPORT -d --pid-file=hg-1.pid --error errors-1.txt |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
271 $ cat hg-1.pid > $DAEMON_PIDS |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
272 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
273 $ hg clone --quiet --stream -U http://localhost:$HGPORT clone-from-share |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
274 $ hg -R clone-from-share verify |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
275 checking changesets |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
276 checking manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
277 crosschecking files in changesets and manifests |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
278 checking files |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
279 checked 3 changesets with 1088 changes to 1088 files |
48654
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
280 $ hg debugrequires -R clone-from-share | egrep 'share$' |
48598
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
281 [1] |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
282 |
a6f16ec07ed7
stream-clone: add a explicit test for format change during stream clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff
changeset
|
283 $ killdaemons.py |
48654
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
284 |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
285 Test streaming from/to repository without a share-safe |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
286 ====================================================== |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
287 |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
288 $ rm hg-*.pid errors-*.txt |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
289 $ hg clone --pull --config format.use-share-safe=no server server-no-share-safe |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
290 requesting all changes |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
291 adding changesets |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
292 adding manifests |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
293 adding file changes |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
294 added 3 changesets with 1088 changes to 1088 files |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
295 new changesets 96ee1d7354c4:5223b5e3265f |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
296 updating to branch default |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
297 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
298 $ hg verify -R server-no-share-safe |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
299 checking changesets |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
300 checking manifests |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
301 crosschecking files in changesets and manifests |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
302 checking files |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
303 checked 3 changesets with 1088 changes to 1088 files |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
304 $ hg -R server serve -p $HGPORT -d --pid-file=hg-1.pid --error errors-1.txt |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
305 $ cat hg-1.pid > $DAEMON_PIDS |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
306 $ hg -R server-no-share-safe serve -p $HGPORT2 -d --pid-file=hg-2.pid --error errors-2.txt |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
307 $ cat hg-2.pid >> $DAEMON_PIDS |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
308 $ hg debugrequires -R server | grep share-safe |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
309 share-safe |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
310 $ hg debugrequires -R server-no-share-safe | grep share-safe |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
311 [1] |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
312 |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
313 share-safe → no-share-safe cloning |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
314 |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
315 $ hg clone --quiet --stream -U http://localhost:$HGPORT clone-remove-share-safe --config format.use-share-safe=no |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
316 $ cat errors-1.txt |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
317 $ hg -R clone-remove-share-safe verify |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
318 checking changesets |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
319 checking manifests |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
320 crosschecking files in changesets and manifests |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
321 checking files |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
322 checked 3 changesets with 1088 changes to 1088 files |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
323 $ hg debugrequires -R clone-remove-share-safe | grep share-safe |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
324 [1] |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
325 |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
326 |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
327 no-share-safe → share-safe cloning |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
328 |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
329 $ hg clone --quiet --stream -U http://localhost:$HGPORT2 clone-add-share-safe --config format.use-share-safe=yes |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
330 $ cat errors-2.txt |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
331 $ hg -R clone-add-share-safe verify |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
332 checking changesets |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
333 checking manifests |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
334 crosschecking files in changesets and manifests |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
335 checking files |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
336 checked 3 changesets with 1088 changes to 1088 files |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
337 $ hg debugrequires -R clone-add-share-safe | grep share-safe |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
338 share-safe |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
339 |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
340 |
eb5c33f1d08f
stream-clone: stop considering working copy only requirements
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
48653
diff
changeset
|
341 $ killdaemons.py |